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

Problem with List Query (IN Keyword) using Parameter

Status
Not open for further replies.

woogoob

Programmer
Jan 2, 2003
6
0
0
US
This query works

Select * from tblTest where in ('abc', 'xyz')

But for the following query:

PARAMETERS parTest Text ( 255 );
SELECT *
FROM tblTest
WHERE (((TBL_CustomerPricing.ITEM_NUMBER) In ([parTest])));

when I enter 'abc','xyz' in the parameter field,
i get no records back.

Please tell me what I'm doing wrong?

Thanks in Advance!
 
I meant to say
Select * from tblTest where ITEM_NUMBER in ('abc', 'xyz')
This query works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top