Hi, sorry about the confusion.
My picklist is a combination of the codes and supplier names, so:
400 Wilson Farm
050 Big Farm
G Small Farm
262 Wylie Farm
D Tiny Farm
It is a combination of suppliers and their codes. The older ones are the single digit ones, but there are only 10 of them. My database (as viewed directly) seems to show the single digit ones as " D " and all of the others as "400", "020" etc, so it seems to centre the single digit.
My selection code for the parameter is as follows:
'
(if {?Supplier (ignore for all)} = "" then true else if {?Supplier (ignore for all)} <> "" then {PO.SUPPLIER} = {?Supplier (ignore for all)})
'
'{?Supplier..' is my parameter field, PO.SUPPLIER is where the supplier code (" D ", or "040" etc) is tagged to an order.
My picklist was generated from a table called SUPPLIER, which shows the TEXT (supplier name) and its CODE. This is linked via a left outer join to the PO table (PO -> SUPPLIER).
I am using the above code so that if nothing is selected then the query will return all records - hence the '(ignore for all)' text.
Sorry if this is even more confusing!
Edited by funkyrobot - 28 May 2009 at 2:18am