PC Review


Reply
Thread Tools Rate Thread

DAO 3.6 Reference Priority changes on install

 
 
Rich Schoenfeld
Guest
Posts: n/a
 
      21st Jan 2006
DAO 3.6 needs to be high up in the reference priorty. On my development
machine, it is as high as possible. When I install my database application
on another machine, sometimes ( but not always) it drops down to the bottom
of the list, causing compile and other problems. I never know whether it
will happen or not.

Has anyone seen this, and what to do about it.

Thanks,
Rich


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      21st Jan 2006
The order should not change.

In any case, you could solve the issues with:
1. Remove any references you don't need.
If you are not sure which references you need for your version of Access,
see:
http://allenbrowne.com/ser-38.html
Ideally get it down to just 3.

2. Explicitly disambiguate any objects that are found in multiple libraries.
For example, instead of:
Dim rs As Recordset
use:
Dim rs As DAO.Recordset
Then it doesn't matter which library has higher priority.

You can do this application-wide for an existing app, by replacing:
As Recordset
with:
As DAO.Recordset
Other objects that need explicit declaration include Field, Property,
Parameter (and the plurals of these.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rich Schoenfeld" <(E-Mail Removed)> wrote in message
news:WMjAf.3145$(E-Mail Removed)...
> DAO 3.6 needs to be high up in the reference priorty. On my development
> machine, it is as high as possible. When I install my database
> application on another machine, sometimes ( but not always) it drops down
> to the bottom of the list, causing compile and other problems. I never
> know whether it will happen or not.



 
Reply With Quote
 
Rich Schoenfeld
Guest
Posts: n/a
 
      22nd Jan 2006
The problem is that I have some third-party controls that I need to
reference. And the DAO does move to the bottom ...

How do I prevent it from moving to the bottom.


"Allen Browne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The order should not change.
>
> In any case, you could solve the issues with:
> 1. Remove any references you don't need.
> If you are not sure which references you need for your version of Access,
> see:
> http://allenbrowne.com/ser-38.html
> Ideally get it down to just 3.
>
> 2. Explicitly disambiguate any objects that are found in multiple
> libraries.
> For example, instead of:
> Dim rs As Recordset
> use:
> Dim rs As DAO.Recordset
> Then it doesn't matter which library has higher priority.
>
> You can do this application-wide for an existing app, by replacing:
> As Recordset
> with:
> As DAO.Recordset
> Other objects that need explicit declaration include Field, Property,
> Parameter (and the plurals of these.)
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Rich Schoenfeld" <(E-Mail Removed)> wrote in message
> news:WMjAf.3145$(E-Mail Removed)...
>> DAO 3.6 needs to be high up in the reference priorty. On my development
>> machine, it is as high as possible. When I install my database
>> application on another machine, sometimes ( but not always) it drops down
>> to the bottom of the list, causing compile and other problems. I never
>> know whether it will happen or not.

>
>



 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      22nd Jan 2006
The presence of some other references is not the cause of the problem. I
don't understand why it is moving to the bottom. Setting references in code
is a bit of a dog's breakfast. Best article I can suggest:
http://www.trigeminal.com/usenet/usenet026.asp?1033

Explicitly disambiguating should solve the problem with the code.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rich Schoenfeld" <(E-Mail Removed)> wrote in message
news:M0AAf.3492$(E-Mail Removed)...
> The problem is that I have some third-party controls that I need to
> reference. And the DAO does move to the bottom ...
>
> How do I prevent it from moving to the bottom.
>
>
> "Allen Browne" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> The order should not change.
>>
>> In any case, you could solve the issues with:
>> 1. Remove any references you don't need.
>> If you are not sure which references you need for your version of Access,
>> see:
>> http://allenbrowne.com/ser-38.html
>> Ideally get it down to just 3.
>>
>> 2. Explicitly disambiguate any objects that are found in multiple
>> libraries.
>> For example, instead of:
>> Dim rs As Recordset
>> use:
>> Dim rs As DAO.Recordset
>> Then it doesn't matter which library has higher priority.
>>
>> You can do this application-wide for an existing app, by replacing:
>> As Recordset
>> with:
>> As DAO.Recordset
>> Other objects that need explicit declaration include Field, Property,
>> Parameter (and the plurals of these.)
>>
>> "Rich Schoenfeld" <(E-Mail Removed)> wrote in message
>> news:WMjAf.3145$(E-Mail Removed)...
>>> DAO 3.6 needs to be high up in the reference priorty. On my development
>>> machine, it is as high as possible. When I install my database
>>> application on another machine, sometimes ( but not always) it drops
>>> down to the bottom of the list, causing compile and other problems. I
>>> never know whether it will happen or not.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Option/Reference/Install/Environment/etc. Issue Steve McLeod Microsoft Excel Programming 5 5th Jan 2009 08:49 PM
How do I install Reference Manager 10 in Word 2007? =?Utf-8?B?R2FyZXRo?= Microsoft Word Document Management 6 19th Sep 2006 04:15 PM
#Name, what reference to install? Gregorio Microsoft Access Form Coding 1 15th Aug 2005 11:28 PM
2 dos apps slow until NTVDM priority lowered - can i set process priority automatically at startup ? scott Microsoft Windows 2000 6 17th Mar 2005 04:42 PM
current priority vs base priority Gwen Microsoft Windows 2000 Developer 0 5th Sep 2004 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 PM.