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

deleting all records

Status
Not open for further replies.

knaya

MIS
Dec 4, 2003
51
US
on a click of a button from a form, i'm trying to delete all rows in a table.. i'm using: DELETE FROM tbldumptable (the table name is dumptable) but after i click the button it keeps saying compile error, systax error. . can someone please tell me what i'm doing wrong?????? Thanksss
 
i cnaged the code to this: DELETE dumptable.ProductId, dumptable.ProductName, dumptable.Price
FROM dumptable;
and its still giving me a syntax error..helppp
 
i figured it out, i did a delete macro (set system warnings off) and attached it to the "on exit" event of a form..yeeehaaaaaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top