LeslieMcLean
Technical User
I have a parameter ProductLine in my report on all sales. The user can select three values "M" for mail order, "E" for event and "A" for all. I have a database field called OrderType which has multiple values starting with M (which are all mail order types), E (which are all event types) and then other values starting with various letters. When my report runs, I want to use the parameter to select the records with the correct order type without having to have three seperate select statements. I have a series of parameters that I would like to do this with and if i do them as all separate select statements seperated by "OR" I'll have 12 statements which becomes confusing to edit. I'm assuming this is done with variables but I can't figure it out.
For example:
The customer can choose ProductLine (described above), InTheCatalog (3 values=yes, no, all), SelfSupply (yes, no, all). I need a relatively simple select that evaluates this and pulls out the right info. Basically, when the user picks "all" for any of these lines, I don't want to limit the select on another field.
I'm assuming it's something like this...
then Order.Ordertype startswith ?ProductLine and
Order.Catalog=?InTheCatalog and
Order.Supplier=?SelfSupply
This works for the limiting choices but not for the "ALL" choice where I want the record regardless of the value in the actual field.
Thanks.
For example:
The customer can choose ProductLine (described above), InTheCatalog (3 values=yes, no, all), SelfSupply (yes, no, all). I need a relatively simple select that evaluates this and pulls out the right info. Basically, when the user picks "all" for any of these lines, I don't want to limit the select on another field.
I'm assuming it's something like this...
then Order.Ordertype startswith ?ProductLine and
Order.Catalog=?InTheCatalog and
Order.Supplier=?SelfSupply
This works for the limiting choices but not for the "ALL" choice where I want the record regardless of the value in the actual field.
Thanks.