How do you delete all records within a table?

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

Guest

If I want to place a command button on my page view, to delete all the
records from a table, how would I do this? I want the table to remain in the
database.
 
sa said:
If I want to place a command button on my page view, to delete all the
records from a table, how would I do this? I want the table to remain
in the database.

CurrentDB.Execute "DELETE * FROM TableName", dbFailOnError
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top