×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Show available rooms for null values

 Forum Search FAQs Links MVPs

## Show available rooms for null values

(OP)
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}

### RE: Show available rooms for null values

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}

### RE: Show available rooms for null values

(OP)
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.

### RE: Show available rooms for null values

(OP)
Also could get the same results if a I did a subreport formula?

### RE: Show available rooms for null values

For one thing, remove the "and" before the "then".

-LB

### RE: Show available rooms for null values

(OP)
Thank you I figured that out.

### RE: Show available rooms for null values

Opps!, trying to do a quick copy and paste and remove the extra ifs. me bad !!!

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

#### Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!