473,785 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ 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 1779
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*****@earthl ink.net> wrote in message
news:IU******** **********@news read3.news.atl. earthlink.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*****@earthl ink.net> wrote in message news:<IU******* ***********@new sread3.news.atl .earthlink.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
GetReferenceFro mFile function (see the help). You'd have to do
something like:

Function RegisterCompone nts()
On Error Resume Next '--it's okay if one reference is already
registered - just keep going
GetReferenceFro mFile("C:\progr am files\common files\microsoft
shared\dao360.d ll")

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
1968
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 possible to simply change a key somewhere, and convert the trial-ware to permanent-ware without having to uninstall and reinstall. Can anyone offer any facts on this?
3
1934
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? Cheers -- William Tasso - http://WilliamTasso.com
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 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...
0
1121
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 programmatically. public class Navigator: ComboBox { Navigator() { IntializeComponents(); }
4
2410
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. Note:There are no objects in my permanent table space test_per_ts.
4
7076
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 10. NetApp FAS250 storage array). This went quite well, but it rendered our permanent (legal) DB2 license invalid, and I can see of no way to get our environment up and running with FP13 installed.
1
1334
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 url 'permanent' somehow, i.e. doesn't change while e.g. clicking on a link! How is this accomplished? Maybe some sort of script?
9
2473
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 deal with references which are local variables. But references can also be function arguments (in fact they are more useful this way) in which case it has to have the in-memory representation.
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.