Wallegator
Programmer
I have parameter fields for two fields: a vendor number and a job number. I want the end user to have the ability to specify none, one, or both of the parameters. My record selection formula is below and it doesn't work. End result is no records if I select none, one, or all of the parameters. What am I doing wrong? I thought it might be the "AND" in lieu of "OR" but "OR" doesn't work either. Thank you in advance.
(If {?VendorNumber}<>"" Then {APM_MASTER__DISTRIBUTION.Vendor}=({?VendorNumber}) Else True)
And
(If {?Job}<>"" Then {APM_MASTER__DISTRIBUTION.Job}=({?Job}) Else True)
(If {?VendorNumber}<>"" Then {APM_MASTER__DISTRIBUTION.Vendor}=({?VendorNumber}) Else True)
And
(If {?Job}<>"" Then {APM_MASTER__DISTRIBUTION.Job}=({?Job}) Else True)