473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Library References

A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.
Nov 13 '05 #1
10 1653

"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.


Yes, they can co-exist, not that I would recommend it. Sounds like a recipe
for mucho confusion. If both libraries are referenced, then where object
declarations could be ambiguous, they must be qualified e.g.

Dim rs As DAO.Recordset

In fact, for the sake of clarity, I always qualify declarations of all
DAO/ADO objects.
Nov 13 '05 #2
"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10****************@damia.uk.clara.net...

"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.
Yes, they can co-exist, not that I would recommend it. Sounds like a

recipe for mucho confusion. If both libraries are referenced, then where object
declarations could be ambiguous, they must be qualified e.g.

Dim rs As DAO.Recordset

In fact, for the sake of clarity, I always qualify declarations of all
DAO/ADO objects.


There's nothing wrong with having both references. I do it a lot: DAO for
queries against Access tables and ADO for queries against SQL Server.

I agree with your advice about always qualifying the declarations. I do this
even when I only have a DAO reference set.

For the record, the list of objects with the same names in the 2 models is
Connection, Error, Errors, Field, Fields, Parameter, Parameters, Property,
Properties and Recordset
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #3
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:KY********************@rogers.com...

There's nothing wrong with having both references. I do it a lot: DAO for
queries against Access tables and ADO for queries against SQL Server.


Call me a Luddite if you will, but I almost exclusively use DAO against SQL
Server as well.
Nov 13 '05 #4
Brian wrote:
"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.

Yes, they can co-exist, not that I would recommend it. Sounds like a recipe
for mucho confusion. If both libraries are referenced, then where object
declarations could be ambiguous, they must be qualified e.g.

Dim rs As DAO.Recordset

In fact, for the sake of clarity, I always qualify declarations of all
DAO/ADO objects.

Thanks Brian. I have been doing just that but I just wanted a little
extra confidence that what I was doing was right. Oh the joys of working
with someone else's stuff ;-)

Regards,
Keith.
Nov 13 '05 #5
Douglas J. Steele wrote:
<snip>
For the record, the list of objects with the same names in the 2 models is
Connection, Error, Errors, Field, Fields, Parameter, Parameters, Property,
Properties and Recordset

Thanks for the info. Is there special consideration to be observed when
handling the common objects?
Nov 13 '05 #6
"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
Douglas J. Steele wrote:
<snip>
For the record, the list of objects with the same names in the 2 models is Connection, Error, Errors, Field, Fields, Parameter, Parameters, Property, Properties and Recordset

Thanks for the info. Is there special consideration to be observed when
handling the common objects?


As long as you ensure you declare as DAO.xxx or ADODB.xxx, you should have
no problem.

If you don't disambiguate like that, you'll get which reference appears
higher in the list of references, which may not be what you want.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #7
Luddite
"Brian" <bc**@IHATESPAMclara.co.uk> wrote:

Call me a Luddite if you will, but I almost exclusively use DAO against SQL Server as well.

Nov 13 '05 #8
In Access, you almost have to use DAO for some things, and it's fine, even
excellent for working with either native JET tables, or links to servers. On
the other hand, I'm always coming up with compelling needs for ADO features
like batch optimistic recordsets, saving recordsets to files, and using
fabricated ADO recordsets for things that have nothing directly to do with
databases at all.

That means almost every Access project I work on has references to both DAO
and ADO. It's normal, and it's fine.

On Sat, 2 Oct 2004 11:27:22 +0000 (UTC), Keith <ke***@NOCARPkeithwilby.org.uk>
wrote:
A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.


Nov 13 '05 #9
"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message
news:ff********************@comcast.com...
Luddite
"Brian" <bc**@IHATESPAMclara.co.uk> wrote:

Call me a Luddite if you will, but I almost exclusively use DAO against

SQL
Server as well.



LOL!
Nov 13 '05 #10
Many thanks Steve.

Steve Jorgensen wrote:
In Access, you almost have to use DAO for some things, and it's fine, even
excellent for working with either native JET tables, or links to servers. On
the other hand, I'm always coming up with compelling needs for ADO features
like batch optimistic recordsets, saving recordsets to files, and using
fabricated ADO recordsets for things that have nothing directly to do with
databases at all.

That means almost every Access project I work on has references to both DAO
and ADO. It's normal, and it's fine.

On Sat, 2 Oct 2004 11:27:22 +0000 (UTC), Keith <ke***@NOCARPkeithwilby.org.uk>
wrote:

A2000 SP-3. Win XP Pro.

I've inherited an A2k database which references both DAO and ADO
libraries. I'm a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don't think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.


Nov 13 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
3
by: Helene Day | last post by:
I am trying to access the Word Objects from a .NET project. I have some sample from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp and I...
9
by: Aguilar, James | last post by:
Hey guys. A new question: I want to use an STL libarary to hold a bunch of objects I create. Actually, it will hold references to the objects, but that's beside the point, for the most part. ...
2
by: Zippy | last post by:
Some months ago, we requested help from this newsgroup on how to replace the library reference of a database with another library reference, prior to creating an MDE. I got the following answer...
19
by: Deniz Bahar | last post by:
Hi, I would like to call one of my functions the exact name as an existing C library function (for example K&R2 exercises asks me to make an atof function). If I don't include the header with...
0
by: BruinBySea | last post by:
Here is the problem. I built LibA and LibB as class library projects in the same solution as my web application HelloWorldWebApp. Wherever necessary I added project references. Everything...
0
by: Learning SQL Server | last post by:
I dont think I'm doing something right here or maybe I am misunderstanding the concept. Hope someone can help. I have a solution with 5 projects. Each one builds into its own class library. They...
4
by: Dave | last post by:
hi, I wrote class library that contain a struct stX and a new class library that get the first class library as referance and implement a function foo that one of its parametrs is of type of the...
9
by: Brian Cryer | last post by:
I've developed software (vb.net) that renders maps using svg. My manager would like this "mapping component" to be migrated into a library so it can easily be used by other web based applications....
0
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I deploy a project which references a custom Class library project (DLL) which is bundled together with the main project. This works fine. But if I update the class library (DLL)...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.