• Export database tables (2003)

    Author
    Topic
    #455690

    Hi,

    I have the attached code to export tables which are in the same mdb file as the code resides in.

    What I would like to achieve however is that I can pass an mdb file name as a parameter and have the code export all tables in THAT file to a new database.

    The reason is that I want to create a backup copy of a backend database with just tables.

    Is this possible?

    Viewing 0 reply threads
    Author
    Replies
    • #1135464

      You’d have to start a second instance of Access through Automation. See the attached version of the code.

      Call it like this:

      Dim strRet As String
      strRet = ExportTables(“C:TestMydatabase.mdb”, False)

    Viewing 0 reply threads
    Reply To: Export database tables (2003)

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

    Your information: