create a query to delete all records in a table

D

Dave F

Is it possible to create a query which deletes all records in a table? Sort
of a reverse append query?
 
M

Mike

Yes you can do it in code, here is a sample:
DoCmd.RunSQL "delete * from [842-2486 Heads]"
where "[842-2486 Heads]" is the name of the table.
Or you can create a delete query by selecting the query type in the query
section of access.
let me know if this helps.
 
C

CZ

Type SQL code

Delete [table name].[ID], [table name].[additional name] From [table name]
Where ((([table name].[ID])>0));
 
Top