473,487 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

References Are Not Permanent

In AccessXP(A2000 mode), how do I make the change of references from ADO to
DAO3.6 permanent?

I go into references and uncheck ADO then scroll down to DAO3.6 and check it. I
close references and reopen and DAO3.6 is in the list at the top and checked.
Then I open my database and close it. When I go and look at references, ADO is
back and checked and DAO3.6 is back in the list unchecked. BTW, the database was
designed with DAO3.6 checked on another computer.

Thanks,

Mel

Nov 12 '05 #1
3 1762
I have never heard of this happening.

Just to make sure we're talking the same thing, you're opening file1.mdb,
changing the references, closing file1.mdb then reopening file1.mdb and the
references are different?

If your expectation is that changing the references in file1.mdb will
reflect in file2.mdb, that's not the way it is. Each mdb contains its own
references. When you create a new mdb, Access assigns the default references
to it, and there's no way to change what those default references are.

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

"Melanie" <mw*****@earthlink.net> wrote in message
news:IU******************@newsread3.news.atl.earth link.net...
In AccessXP(A2000 mode), how do I make the change of references from ADO to DAO3.6 permanent?

I go into references and uncheck ADO then scroll down to DAO3.6 and check it. I close references and reopen and DAO3.6 is in the list at the top and checked. Then I open my database and close it. When I go and look at references, ADO is back and checked and DAO3.6 is back in the list unchecked. BTW, the database was designed with DAO3.6 checked on another computer.

Thanks,

Mel

Nov 12 '05 #2
"Melanie" <mw*****@earthlink.net> wrote in message news:<IU******************@newsread3.news.atl.eart hlink.net>...
In AccessXP(A2000 mode), how do I make the change of references from ADO to
DAO3.6 permanent?

I go into references and uncheck ADO then scroll down to DAO3.6 and check it. I
close references and reopen and DAO3.6 is in the list at the top and checked.
Then I open my database and close it. When I go and look at references, ADO is
back and checked and DAO3.6 is back in the list unchecked. BTW, the database was
designed with DAO3.6 checked on another computer.

Thanks,

Mel


Mel,

I asked this question a while back, and Michael Kaplan said "You can't
make DAO the default. ADO is the default from A2000 on, and it's
hard-coded, so you can't change it as if it were a preference to use
DAO instead of ADO by default.

One way you can get around this (sort of) is to use the
GetReferenceFromFile function (see the help). You'd have to do
something like:

Function RegisterComponents()
On Error Resume Next '--it's okay if one reference is already
registered - just keep going
GetReferenceFromFile("C:\program files\common files\microsoft
shared\dao360.dll")

End Function

then you could call the function in the startup of your code. Of
course, you could get around this by using late binding... and then
your version of DAO wouldn't so much matter, unless you were using a
function that was not in the user's version of the DAO library.

Of course, you'd need to preface any of your DAO-specific code with
the library name... so instead of

Dim db as database

you'd use

Dim db As DAO.Database

This will become critical if you have objects with the same name in
two different libraries, e.g.

Dim rsADO as ADODB.Recordset
Dim rsDAO as DAO.Recordset

HTH,
Pieter

HTH,
Pieter
Nov 12 '05 #3
"Pieter Linden" wrote
I asked this question a while back, and
Michael Kaplan said "You can't make
DAO the default. ADO is the default
from A2000 on, and it's hard-coded, so
you can't change it as if it were a preference
to use DAO instead of ADO by default.


That was the case with Access 2000 and Access 2002, but Microsoft listened
to the people who responded to them about this issue. In Access 2003, the
DAO Library is not only checked by default, it is above the ADO Library
(also checked by default) in the References list. Because it precedes ADO,
if you forget to qualify a Dim, it will be treated as a DAO object rather
than an ADO object if there's a conflict (as was not the case in Access 2000
and 2002).

Larry Linson
Microsoft Access MVP
Nov 12 '05 #4

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

Similar topics

1
1937
by: john_pongo | last post by:
Greetings esteemed peers & colleagues, I've downloaded & installed (full) IBM's Websphere App Developer 5 IDE trialware. Now my company has purchased the product, and I'm wondering if it's...
3
1909
by: William Tasso | last post by:
Greetings one and all I've just taken over a site and I'm changing the files from .htm to .asp. What's considered the best practice method of indicating the source of the new document? ...
1
315
by: Melanie | last post by:
In AccessXP(A2000 mode), how do I make the change of references from ADO to DAO3.6 permanent? I go into references and uncheck ADO then scroll down to DAO3.6 and check it. I close references and...
0
1100
by: dmanhr | last post by:
Hi, I'm developing a control (derived from ComboBox) with permanent items (First, Previous, Next, Last). So, I'd like it's collection of items couldn't be changed neither in design time nor...
4
2395
by: nunnasujatha | last post by:
Hi all, i ve tried to convert a permanent tablespace to temporary. for this i 've used alter tablespace test_per_ts temporary; ERROR:invalid option for create/alter tablespace. ...
4
7051
by: Jurgen Haan | last post by:
Hi hi everyone. We have upgraded our DB2 LUW 8.2.1 which was directly installed from our DB2 CD's to DB2 LUW 8.2.6 (FP13). (system: HP DL385 (AMD64), single socket, dual core. 8GB memory. SLES...
1
1328
by: patrickdrd | last post by:
Hi all! Does anyone know of a way to keep a permanent url throughout a user's browsing? For example, if my web site's address is http://www.mysite.com, I have noticed that some sites keep that...
9
2455
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you...
0
7106
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
6967
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
7181
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...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.