Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty the table contents after running the query

Status
Not open for further replies.

navdha88

Programmer
May 1, 2003
8
0
0
CA
Hi Everyone:

I have a form based on append query. Each time when I run the form the table is filled up and a report is opened based on that query. After the report is opened I want all the contents of the table to be emptied. The table is growing each time when I run the form.

I want the codes to eleminate the contents of the table. Could someone help please.

thx
 
Hi navdha88,

Create a Delete Query on the Table. It will go something like this:

DELETE ID
FROM Table1;

Change "ID" to a Field in your Table and "Table1" to your Table Name.

Regards

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top