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. 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.
"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!)
"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.
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.
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?
"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!)
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.
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.
"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!
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raymond Hettinger |
last post by:
Comments are invited on the following proposed PEP.
Raymond Hettinger
-------------------------------------------------------
PEP: 329
|
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...
|
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. ...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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)...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |