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 strongm 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 in table during run time

Status
Not open for further replies.

Frank72

Technical User
Nov 13, 2001
57
IE
Hows it going

Is there a method or command that will delete all records in one go or would I have to use the .delete method in a loop?

many thanks

Frank
 
Ummmm......

How about CurrentDB.Execute "DELETE * FROM YourTable"?

Craig
 
or if it's an Excel table:
'*****************************************************************

Rows(Cells(2, 1).Row & ":" & Selection.SpecialCells(xlLastCell).Row).Delete Shift:=xlUp
Cells(2, 1).Select

ide
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top