Jan 21, 2002 #1 SeaRay Technical User Jan 8, 2002 20 US How do I write code to delete a table if it exists?
Jan 21, 2002 #2 ilses Technical User May 31, 2001 235 DE Hi SeaRay, Please specify the programs you're using: do you want to delete a Word, Excel, Acces or other table? Giving a little more detail would be helpful. Ilses Upvote 0 Downvote
Hi SeaRay, Please specify the programs you're using: do you want to delete a Word, Excel, Acces or other table? Giving a little more detail would be helpful. Ilses
Jan 22, 2002 1 #3 Ed2020 Programmer Nov 12, 2001 1,899 GB If you mean in MS Access then: Public Sub DeleteTable(strTableName as string) On Error Resume Next DoCmd.DeleteObject acTable, strTableName ExitHere: Exit Sub End Sub Hope this helps. Ed Metcalfe. Upvote 0 Downvote
If you mean in MS Access then: Public Sub DeleteTable(strTableName as string) On Error Resume Next DoCmd.DeleteObject acTable, strTableName ExitHere: Exit Sub End Sub Hope this helps. Ed Metcalfe.
Jan 22, 2002 Thread starter #4 SeaRay Technical User Jan 8, 2002 20 US Sorry Ilses, I meant Access. Thanks ED2020. Upvote 0 Downvote