Solved

DAO and ADO

Posted on 2000-04-11
6
259 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 100 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now