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

Where problem

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
Trying to add the last statement into the WHERE clause in query SQL page. It does not like the final ", and if I remove it my query produces nothing. Any ideas, thanks


((TXMASTERS.Competition) Like "*" & [FORMS]![Newquerysform].[LNAME5].[CAPTION] & "*"))


AND KEYWORDS.Keyword IN (" & Mid(strList1, 2) & ")"
 
try outputting the result of your generated sql once you've generated it.

I think you're missing quotes somewhere...

--------------------
Procrastinate Now!
 
in query SQL page
???
You posted something that seems VBA.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Oh PHV, you are so, so right. Its VB. Now I have a problem where I have a multifield query that works (SQL) as recordsource for a listbox, that reacts/displays results on various list selections. But now the problem of how to integrate a VB part of the query (Multi select List) How do I climb over that wall? Thanks
 
Now after hitting the last post/send button, I suppose I should have done it all in VB in the beginning. Think I have answered myself, but thanks both for comming in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top