For some reason unknown, my Access97 has started to fail to run or compile programs that were operating without problem until just a couple of days ago. The error I receive is:
Compile Error
Function or interface marked as restricted or the function uses an
Automation type not supported in Visual Basic.
When I try to compile the code the error lines refer to objects like ‘currentdb’ or ‘dbengine’.
I suspect this may be a case of broken references, but the list looks OK (…as a secondary question, how do I know what references should be set anyway?). The problem appears to be affecting all mdbs, and not just one which may have been corrupted. After trying a number of things, I have even tried a reinstall of A97, but still without success.
I would be grateful for any help in interpretting this error, and even more so for suggestions about how to fix it.
Thanks,
Geoff