Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem after upgrading W98 to W2K

Status
Not open for further replies.

baronvont

Technical User
May 15, 2001
77
AU
Can anyone help out here? I get the following error message:

+++++++
Compile error:

Function or interface marked as restricted, or the function uses an automation type not supported in Visual Basic.

+++++++

The thing is that the compliler highlights this line...

Set db = CurrentDb

a basic command!!!

Has anyone else come across this? I did have a problem with missing references but have re-attached them.

Cheers
Georg
 
Sorry - a bit more info (thought I had typed this in!!)- this is after I had upgraded from W98 to W2K. Still using Access 97 tho...
 
OK got it!!


ERROR: ACC97 Win98 DAO 3.6 "Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic " error on the 'set db = currentdb() command'
FIX: Remove DAO 3.6 from Access 97, return to DAO 3.51. Click Start | Run, paste this in:
Regsvr32.exe "C:\Program Files\Common Files\Microsoft Shared\DAO\DAO350.DLL" and hit return. You should see a message that the library was successfully registered. The error will vanish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top