Clearing data?

  • Thread starter Thread starter access dummy
  • Start date Start date
A

access dummy

I need to clear all of the data in a access database, but
keep all of the fields.

Does anyone know of a way to do this.
 
Open the Immediate Window (press Ctrl+G), and enter:
dbEngine(0)(0).Execute "DELETE FROM Table1;"
substituting the name of your table for Table1. Press Enter.
 
Allen,

I should have explained better. This database has a front
end on it that doesn't allow me to get to any controls.

The way this is set up you can enter of view data, but
can not get to any controls.

Thanks again.
 
Just click on the upper left corner of your Access table to select all
records. Then, right click and click on Delete Record. All records will be
deleted.
 
Thanks Guys, I figured it out.

I couldn't get to the tables. But if you hold down the
shift key while it's opening, you can get to them.


Thanks Again.

Signed,

Slightly less dumb.
 

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