CanonShooter
Structural
- Oct 14, 2005
- 39
Stupid question #100
I cannotfigure out how toactually connect to a ODBC database in VBA. I'm thinking I need to use the DBConnect function, but not sure about the Object it is requiring. Like the help file says use Object.Connect, but what exactly does it want? I can connect using the DBConnect Config tool manually, but not programmatically.
Can anybody help me with a sample Object setup and call?
I cannotfigure out how toactually connect to a ODBC database in VBA. I'm thinking I need to use the DBConnect function, but not sure about the Object it is requiring. Like the help file says use Object.Connect, but what exactly does it want? I can connect using the DBConnect Config tool manually, but not programmatically.
Can anybody help me with a sample Object setup and call?