• Compile Error -> CurrentDB (97)

    Author
    Topic
    #422583

    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?

    Viewing 0 reply threads
    Author
    Replies
    • #964219

      A couple of things to check – is the database split into a front-end and a back-end, and do you perhaps have a later version of DAO than that which shipped with Access97. The latter should be DAO 3.5, not DAO 3.6 if you are running Access97 on both the back-end and the front-end. You may want to look at a module and then check the references to see what has been set.

    Viewing 0 reply threads
    Reply To: Compile Error -> CurrentDB (97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: