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

Run-time error '3065' Cannot execute a select query 1

Status
Not open for further replies.

irethedo

Technical User
Joined
Feb 8, 2005
Messages
429
Location
US
I am getting a Run-time error '3065' Cannot execute a select query with the following code:

Code:
strSq1 = "delete * from  SameOrd_tbl WHERE (((SameOrd_tbl.[License_PartNo]) Is Null) 
AND ((SameOrd_tbl.ComputerName) Is Null) AND ((SameOrd_tbl.FriendlyName) Is Null))"
    
CurrentDb.Execute strSql

What am I doing wrong?

Thanks
 
how about trying DoCmd.RunSQL (strSql) instead of trying to execute?

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That DonÆt.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top