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

Multiple fields for one parameter

Status
Not open for further replies.

LMRollins

MIS
Nov 14, 2000
120
US
Here is the scenario:

I have 12 fields (lot1, lot2, lot3,etc)in a report that any one or more can have the same lot number in it per record. I created a parameter called ?mixlot. In select expert, I need to be able to take each of the twelve fields and if any of them enter the parameter ?mixlot, the record will show. This is how my formula looks:

lot1 = ?mixlot or lot2 = ?mixlot or lot3 = ?mixlot (and on until lot12)

My problem is that when I do this, it only seems to consider the first 3 statements and then quits and I don't get all the records I need. Anybody have any suggestions?

 
Either should work, and although dgillz appears to be more elegant, it will not pass the SQL to the database.

I just tried it with 6 different fields and it worked fine. Your problem may be that you malformed the record selection formula, or perhaps you need to patch it.

Select database->Show SQL Query to see what is being passed to the database, I think that you'll find the proper solution is by using your methodology, but you need to test how Crystal is interpreting it.

And rather than post what your formula looks like, consider posting the actual formula.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top