• How to delete a table from another database

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to delete a table from another database

    • This topic has 1 reply, 2 voices, and was last updated 24 years ago.
    Author
    Topic
    #355820

    How to delete a table from another database

    I want to open a database from another database, and then delete the talble Orders in the opened database.However the code made by me doesn

    Viewing 0 reply threads
    Author
    Replies
    • #525613

      Hi,
      Try this:
      Dim cat As New ADOX.Catalog, objConn As New ADODB.Connection
      objConn.Open “Provider= Microsoft.Jet.OLEDB.4.0;Data Source = c:BEstoreBE.mdb”
      with cat
      .ActiveConnection = objConn
      .Tables.Delete “orders”
      end with
      Hope that helps.

    Viewing 0 reply threads
    Reply To: How to delete a table from another database

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

    Your information: