jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I am developing an Access front-end which connects to a SQL server 2000 database. Some of my code (migrated from Access 97) uses DAO as the access method. Reading the help file, Microsoft states it is possible to use this method, but you must explictly declare variables for use with it, & set a permenent link to the DAO 3.6 library.
I set this link.
I tried the following:
Sub AnyName()
Dim db as DAO.Database
Set db = CurrentDB
End Sub
This sub does not work. The variable, db remains to be 'nothing' even after the assignation.
Has anyone else seen this? James Goodman
I set this link.
I tried the following:
Sub AnyName()
Dim db as DAO.Database
Set db = CurrentDB
End Sub
This sub does not work. The variable, db remains to be 'nothing' even after the assignation.
Has anyone else seen this? James Goodman