Change Reference Priority

P

Perico

How do I programmatically change a reference priority in the Tools - References dialogue box?
 
K

Karl E. Peterson

Perico said:
How do I programmatically change a reference priority in the Tools -
References dialogue box?

By not relying on the order, and explicitly qualifying each call? <g>
 
K

Karl E. Peterson

Perico said:
I'm not clear what you mean by "explictly qualifying each call". Could you
give me an example?

In my case, when the reference to DAO in the dialogue box is below (i.e. a
lower priority) than the reference to ADO, I get an error in the DAO code.

Yeah, that was a vague description, sorry. You need to qualify the conflicting
object reference so the proper library is used.

For example, instead of:

Dim rs As Recordset

use:

Dim rs As DAO.Recordset

Later... Karl
 

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

Top