Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DAO and ADO

Posted on 2000-04-11
6
Medium Priority
?
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Suggested Courses

721 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