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

Show available rooms for null values

Status
Not open for further replies.

DeShaun

Technical User
Mar 3, 2017
16
US
Hello,

I am needing some help writing a crystal report formula to pull null values for availability. I am an academic scheduler and I would like to be able to pull a list of available classes by term.

I have attempted to write the following formula:
if (isnull ({room})) and
If ({time} = "0800") and
if ({day} = "MWF") and
then {room}+ " "+{time}
 
In the formula expert. Did you select 'Default Values for NULLs'? Also normally would put all three statement in one if (you have nested the ifs in a non standard way)

if (isnull ({room})) and
({time} = "0800") and
({day} = "MWF") and
then {room}+ " "+{time}
 
I have attempted to add the nested if statement you provide, but I am receiving a " number, currency amount, Boolean, date, time string expected" error.
 
Also could get the same results if a I did a subreport formula?
 
For one thing, remove the "and" before the "then".

-LB
 
Opps!, trying to do a quick copy and paste and remove the extra ifs. me bad !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top