M
Max Moor
Hi All,
Just a point of curiosity...
All through my code, when I want to run a query, I use code like:
Dim ADOCon as ADODB.Conection
....
....
Set ADOCon = CurrentDB.Connection
....
ADOCon.Execute strSQL
I've recently seen someone not declare an object at all, and, in
code, just use:
CurrentDB.Execute strSQL
If I use this code shortcut, am I making a DAO call? I just wonder
what the diffenece is? Is there any other advantage or disadvantage to one
way over the other?
- Max
Just a point of curiosity...
All through my code, when I want to run a query, I use code like:
Dim ADOCon as ADODB.Conection
....
....
Set ADOCon = CurrentDB.Connection
....
ADOCon.Execute strSQL
I've recently seen someone not declare an object at all, and, in
code, just use:
CurrentDB.Execute strSQL
If I use this code shortcut, am I making a DAO call? I just wonder
what the diffenece is? Is there any other advantage or disadvantage to one
way over the other?
- Max