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

Allow Nulls

Status
Not open for further replies.

RobM76

Technical User
Feb 6, 2008
17
CA
Hi There,

I am having problems with a report.

I have selection perameters in the selection expert which are excluding nulls and I need it to allow nulls.

On the selection expert I have a few fields but the one I am having trouble with is the paymentmethod field which is using a "is one of" option and the formula shows the folowing

{bookings.Location} in ["Admirals Mews", "Admiral's Mews", "Celtic Haven", "Saundersfoot", "Waterwynch"] and
{bookings.datearrive} in DateTime (2008, 01, 01, 00, 00, 00) to DateTime (2008, 01, 31, 00, 00, 00) and

{bookings.paymentmethod} in ["*", "Agency 1", "card", "cash", "cheque", "Provisional"]

I there a way of putting in the "in" brachets Null, or is there another way of allowing nulls??

Thanks
 
How about this?

Code:
((isnull({bookings.Location})) or ({bookings.Location} in ["Admirals Mews", "Admiral's Mews", "Celtic Haven", "Saundersfoot", "Waterwynch"]))
 
Thats worked.

Thank you very much.

Genius!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top