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

Using parameter in command error

Status
Not open for further replies.

ss7415

Programmer
Dec 7, 2006
84
US
i am doing a parameter on lot_nbr and part, they are both strings, in my command i have

QTY.PART ={?PART} AND QTY.LOT_NBR = {?LOT}

but the problem is when i enter the part and lot, it wont return any data unless i put ' ' at the beginning and end. Can i have it where the person doesnt need to enter ' ' when they enter the part and lot_nbr. i dont want to change it to a number because there are times the lot and part may have a letter or a -
 
Sounds odd, it shouldn't require it.

What database, and have you checked on the server to see what is being passed?

Do you have to put quotes on both fields?

Just asa test, try:

QTY.PART like {?PART} + "%"
AND QTY.LOT_NBR = {?LOT} +"%"

Might be something in the ODBC driver which is mucking things up, but please don't post here with data issues woithout mentioning the database being used, and your Crystal version.

-k
 
yeah its wierd, that didnt work, im using XI version 2 and oracle xi,

seems really wierd
 
i got it to work QTY.PART ='{?PART}' AND QTY.LOT_NBR = '{?LOT}'

i put the ' ' around my parameter and it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top