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
 
Top