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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete all records from table

Status
Not open for further replies.

gamble007

IS-IT--Management
Joined
Jan 15, 2002
Messages
6
Location
CA
Hi,
Im looking for a way to delete every records in a table, without deleting the table itself. This code would be under a command button. Any ideas?
Thanks
 
Create a query that does the following:

DELETE * FROM MyTable;

have the ButtonClick event run the query. Terry
 
Thanks, thats exactly what i needed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top