Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DAO and ADO

Posted on 2000-04-11
6
Medium Priority
?
277 Views
Last Modified: 2010-05-02
We have several (older) applications developped with access97 using DAO.
We are planning to install access2000.
Does anyone know whether these older applications will still run ?  Do we have to do any conversions ?
0
Comment
Question by:pce
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:goyam
ID: 2706784
Hi,
If you've converted any DAO code from Access 97 to Access 2000, you
may have run into trouble with the Database and Recordset object
types, because they've both been replaced in ADO. That means the
simple statements

Dim dbs As Database
Dim rst As Recordset

would both return errors if you try to run them in Access 2000.
 You must use these statements:
Dim dbs As DAO.Connection
Dim rst As New DAO.Recordset

 You should reference a DAO library : choose
Tools, References; select a Microsoft DAO Object Library; and then
click OK. Once you reference the correct library, the module will work
with the DAO object references Database and Recordset.
 Regards
 
0
 

Author Comment

by:pce
ID: 2706788
I receive the tipworld newsletter too !!!!!
What I don't understand is : do you have to convert your vb-sources ? Once you have installed access2000, do the older .exe's still run ????
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 2706907
You will need to change the DAO library reference from DAO 3.5 to DAO 3.6.

The point about ADO is true but *ONLY* if you start putting in ADO references. If you have a purely DAO project at present this is a red herring!

The DAO 3.5 library will NOT read/write access 2000 databases, if you change to the DAO 3.6 library which is available from microsoft as a download then you can without changing anything else in the code as far as I am aware.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:pce
ID: 2706918
Thanks TimCottee
So all i have to do is :
download dao 3.6
reference this in the vb application
remake the .exe
redistribute my applic
?

Can I already use the DAO 3.6 with access97?
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 300 total points
ID: 2706930
That is it in a nutshell as far as I am aware.

DAO 3.6 should be fine for Access97 as well.
0
 

Author Comment

by:pce
ID: 2706934
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question