• CreateDatabase method (A2003)

    Author
    Topic
    #427645

    Is it possible to create a 2003-format file using the CreateDatabase method? So far, I have only been able to create a 2000-format file using this command:

    CreateDatabase sName, dbLangGeneral, dbVersion40

    Viewing 0 reply threads
    Author
    Replies
    • #991442

      No, the DAO CreateDatabase method creates a plain Jet 4.0 database. It only becomes an Access database (with all the extra stuff) the first time you open it in Access.

      To create an Access 2002/2003 format database (which I don’t recommend, by the way) in code, you’d have to create another instance of Access using Automation, set the default database type to Access 2002/2003 format and use the NewCurrentDatabase method. You cannot do that from the instance of Access running the code, because code execution would end the moment you created a new current database.

    Viewing 0 reply threads
    Reply To: CreateDatabase method (A2003)

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

    Your information: