ChrisO
Registered User.
- Local time
- Today, 15:39
- Joined
- Apr 30, 2003
- Messages
- 3,202
Access 2003: Both libraries are preselected
Even though both libraries may be pre-selected one XOR the other will have the higher priority and I believe that to be DAO in A2K3.
But it still doesn’t matter because the code still works. We have all assumed, both you and I, that it has something to do with Tools/References but it doesn’t.
That’s the point I’m trying to get across…if we create variables of type Database and Recordset then we need correct references in Tools/References. But if we don’t create variables of type Database and Recordset then it defaults to DAO in all versions.
Now some people have known, for quite some time, that Form and Report class modules default to DAO. While that is correct it is also slightly misleading. Even in a standard module, when no Database and Recordset variables are declared, that procedure defaults to DAO in all versions.
And so another thing arises…like you I took it for granted that references need to be made, but they don’t. I too did not test it but simply read the documentation available and believed that that was the way to go.
I would suggest that people look again at what they have been doing for many years.
It may be partially right IOR it may be partially wrong but simply test it.
Regards,
Chris.
Even though both libraries may be pre-selected one XOR the other will have the higher priority and I believe that to be DAO in A2K3.
But it still doesn’t matter because the code still works. We have all assumed, both you and I, that it has something to do with Tools/References but it doesn’t.
That’s the point I’m trying to get across…if we create variables of type Database and Recordset then we need correct references in Tools/References. But if we don’t create variables of type Database and Recordset then it defaults to DAO in all versions.
Now some people have known, for quite some time, that Form and Report class modules default to DAO. While that is correct it is also slightly misleading. Even in a standard module, when no Database and Recordset variables are declared, that procedure defaults to DAO in all versions.
And so another thing arises…like you I took it for granted that references need to be made, but they don’t. I too did not test it but simply read the documentation available and believed that that was the way to go.
I would suggest that people look again at what they have been doing for many years.
It may be partially right IOR it may be partially wrong but simply test it.
Regards,
Chris.