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 help

Status
Not open for further replies.

weltergon

MIS
Oct 1, 2002
21
US
Am I doing something wron, its pulling everything up in the table vs. everything that the variable stItems is equal to:
strWhere = strWhere "(((tblWorkProductText.WorkProductName)='" & strItem & "'))"
my sql statement is a simple select * from table...
Thanks
 
That didn't work...I believe the parentheses are needed.
any other ideas?
Thanks
 
How are ya weltergon . . . . .

I see a missing concatenation operator . . . .

strWhere = strWhere "(((tblWorkProductText.WorkProductName)='" & strItem & "'))"

Should be

strWhere = strWhere & "(((tblWorkProductText.WorkProductName)='" & strItem & "'))"


TheAceMan [wiggle]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top