create a query to delete all records in a table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to create a query which deletes all records in a table? Sort
of a reverse append query?
 
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.
 
Type SQL code

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