0

Good Day

I have some questions to ask, I made a point of sale system using vb6 my question is,. is it ok to combine dao and ado?

Hoping for your quick replies thank you

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by androidz
0

Question back at you: what exactly do you mean by "ok"? If you mean "Is it possible?" then yes, it is possible. You just have to be careful when you are declaring variables that you explicitly specify which library you want your object to refer to (think "Recordset" object...there's one for ADODB and one for DAO, and they are different).
Example:

Dim myDaoRs As DAO.Recordset
Dim myAdoRs As ADODB.Recordset

Also keep in mind that you have to check the appropriate boxes to include the libraries in the Project/References dialog for each of the typelibs.

Another question: why would you want or need to? Is there some kind of functionality that you need that is easier in one than in the other? Are you trying to update an aging app and don't want to hassle with rewriting a bunch of functions? If you are starting a brand-new program, I would recommend choosing one or the other and not mix-and-match. The coding style necessary to effectively use each is substantially different.

Hope this gives you what you were looking for. Good luck!

Edited by BitBlt

0

Thanks for explaining it to me..i usually used only one..it just came into my mind if how effective is it to combine those two lol..anyways i appreciate your response and thank you once again

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.