G
Guest
I am unable to issue any function within VBA and return a result in Access 2000. The simplest code fails
Dim dbCurrent as Databas
Set dbCurrent = CurrentD
The DAO and VBA references are turned on, the code compiles, but dbCurrent returns 'Nothing'. I am wondering what simple set up I might be missing to enable VBA. I have tried other functions and methods and no object seems to work. I have tried these commands under Windows 98 as well as Windows XP and both fail in the same manner. Any help is appreciated.
Dim dbCurrent as Databas
Set dbCurrent = CurrentD
The DAO and VBA references are turned on, the code compiles, but dbCurrent returns 'Nothing'. I am wondering what simple set up I might be missing to enable VBA. I have tried other functions and methods and no object seems to work. I have tried these commands under Windows 98 as well as Windows XP and both fail in the same manner. Any help is appreciated.