DAO 3.6 Reference Priority changes on install

  • Thread starter Thread starter Rich Schoenfeld
  • Start date Start date
R

Rich Schoenfeld

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
 
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.)
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top