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

RunSQL doesn't delete

Status
Not open for further replies.

Sen7inel

IS-IT--Management
Feb 14, 2001
90
FI
What's wrong with this:

DoCmd.RunSQL("DELETE * FROM tbl_Ctr WHERE (Status = 99)")

Gives me the "problem accessing OLE method" error.
 
Hi, the syntax for DoCmd.RunSQL is
DoCmd.RunSQL sqlstatement[, usetransaction]
so try writing your statement as:
DoCmd.RunSQL "DELETE * FROM tbl_Ctr WHERE Status = 99;"





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top