Jan 30, 2002 #1 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
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
Jan 30, 2002 #2 Craig0201 Technical User Oct 11, 2000 1,261 GB Ummmm...... How about CurrentDB.Execute "DELETE * FROM YourTable"? Craig Upvote 0 Downvote
Jan 30, 2002 #3 ide Programmer Apr 10, 2001 236 EU or if it's an Excel table: '***************************************************************** Rows(Cells(2, 1).Row & ":" & Selection.SpecialCells(xlLastCell).Row).Delete Shift:=xlUp Cells(2, 1).Select ide Upvote 0 Downvote
or if it's an Excel table: '***************************************************************** Rows(Cells(2, 1).Row & ":" & Selection.SpecialCells(xlLastCell).Row).Delete Shift:=xlUp Cells(2, 1).Select ide