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!

SQL statement

Status
Not open for further replies.

weltergon

MIS
Oct 1, 2002
21
US
HI,
If strItems= "conceptual"
what is worng with the following code? its not recognizing the where statement...
strWorkProductsSQL = strItems2
strFullSQL = "SELECT * FROM tblWorkProductText WHERE (((tblWorkProductText.WorkProductName)=" & strWorkProductsSQL & "));"
 
Hi weltergon,

If I had a penny for every missing or misplaced quote ... [smile]

Assuming strWorkProductsSQL is a string, try ..

strFullSQL = "SELECT * FROM tblWorkProductText WHERE (((tblWorkProductText.WorkProductName)='" & strWorkProductsSQL & "'));"

Enjoy,
Tony

------------------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading FAQ222-2244 before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top