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!

Runtime Error 3075, missing operator in query expression

Status
Not open for further replies.

kiwieur

Technical User
Apr 25, 2006
200
GB
Hi,

I am trying to use the following code in an access form

Code:
BSize = HSlit & " x " & HalfChop
BundleSize = BSize
BLayer = (DLookup("Bun_Layer", "tblPalletData", "CaseSize = " & BSize))

However I keep getting a Runtime Error 3075, missing operator in query expression.

HSlit = 350 & HalfChop = 350 in this instance, If I change the DLookup to
Code:
BLayer = (DLookup("Bun_Layer", "tblPalletData", "CaseSize = '350 x 350'"))
Then I get a value of 9 returned which is correct, I have been looking at this all afternoon and cannot seem to work out what the problem is.

Can anyone help me please

Regards

Paul

 
It's Ok figured it out now changed the DLookup to the following
Code:
BLayer = (DLookup("Bun_Layer", "tblPalletData", "CaseSize = " & "'" & BSize & "'"))

Thank anyway if anyone was looking at this

Regards

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top