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

Missing Operator error in the following code-I don't see what's miss'n 1

Status
Not open for further replies.

Johnnycat1

Programmer
May 4, 2005
71
US
This is the line that keeps returning the error but for the life of me, I can't see what is missing.

concatenate("SELECT [Fixture Type] FROM[TblFixtureDetailing] WHERE [Lamp Type]=" & [TblFixtureDetailingLampTypes].[Lamp Type])

The error returns
"Syntax Error (Missing Operator) in Expression '[Lamp Type]=100A'.

100A is the Lamp Type from TblFixtureDetailingLampTypes.

Any Suggestions???
 
Looks like Lamp Type is text, so you need single quotes:
[tt]... [Lamp Type]='" & [TblFixtureDetailingLampTypes].[Lamp Type] & "'")[/tt]
 
Remou,

That is it. I forgot that I had copied this from another query that was based on an integer.

Thank You!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top