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

MISSING OPERATOR IN QUERY EXPRESSION

Status
Not open for further replies.

sanders720

Programmer
Aug 2, 2001
421
US
OBJECT =

SELECT DISTINCT * FROM tblStockList WHERE ITEM = 0000037 and CODE = OB and DESCRIPTION = 1 1/2 X 2 X 11 GA TUBE A500


with rs...

.Open OBJECT, "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\deepblue\EngineeringBOM\Data\EngineeringBOM_data.mdb;Persist Security Info=False", adOpenStatic, adLockOptimistic

Produces an error or MISSING OPERATOR IN QUERY EXPRESSION

Please advise... Do I need additional quotation marks in the OBJECT variable definition, or is there another issue?

Thanks in advance for the help!!!


 
The SELECT statement you provided has neither quotation marks or parenthetical division. You will definitely need them for the SELECT statement to evaluate properly. It should probably read:

Code:
OBJECT = "SELECT DISTINCT * FROM tblStockList WHERE (((ITEM = '0000037') And (CODE = 'OB') And (DESCRIPTION = '1 1/2 X 2 X 11 GA TUBE  A500')));"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top