delete data in a table

Mindzeye

Registered User.
Local time
Today, 04:20
Joined
Mar 7, 2013
Messages
11
I am trying to delete the data in a table by selecting the table I want to delete the table in from a combo box on a form. This is what I am using

Dim strFileName As Variant
strFileName = File_imported
DoCmd.DeleteObject acTable = strFileName
:banghead:

Any help you can provide would be appreciated
M
 
You want to delete the table, or the data within? For the data you can run a delete query that is basically:

DELETE * FROM TableName

In code you could use your combo for the table name:

CurrentDb.Execute "DELETE * FROM " & Me.ComboName
 
that worked perfectly, thank you Paul --- again
 
Happy to help...again. :p
 

Users who are viewing this thread

Back
Top Bottom