I have an Access97 databse with this code in it:
Dim myDB as Database Set myDB = CurrentDb
The application is only used once a month or so and just started throwing this error:
Compile Error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic.
Any ideas?