If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
delete a table
How can I delete a table and the criteria is based on the value of another
table using query? Thanks. |
#2
|
|||
|
|||
Public Function DeleteTable(ID As Long) As Boolean
Dim tdf As TableDef Dim sTableName As String On Error GoTo Proc_Exit sTableName = DLookup("[TableName]", "tblTableNames", "[ID] = " & ID) CurrentDb.TableDefs.Delete sTableName CurrentDb.TableDefs.Refresh DeleteTable = True Proc_Exit: End Function Regards, Graham R Seach Microsoft Access MVP Sydney, Australia --------------------------- " -00Eric Clapton" wrote in message ... How can I delete a table and the criteria is based on the value of another table using query? Thanks. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to delete records that match any field in another table ? | Will | General Discussion | 2 | September 15th, 2005 10:54 PM |
Help with relationship plase | Rock | Database Design | 5 | July 4th, 2005 03:54 AM |
Access combo box-show name, not ID, in table? | write on | New Users | 30 | April 30th, 2005 09:11 PM |
Seeking some expert advice. | HD87glide | Using Forms | 14 | March 23rd, 2005 10:11 PM |
Automatically Delete Duplicated Data in Table | faxylady | Running & Setting Up Queries | 3 | September 29th, 2004 06:58 PM |