Avatar of gixxer1020
gixxer1020
Flag for United States of America asked on

Crystal Report Syntax for "include"

I have the following code but and on line 2 instead of looking for just "overbooked", I need any data that includes the word overbooked.

Date({Reservation.InDate}) in {?Date} and
{Room.RoomNumber}  "overbooked" and
(IF {?Site} = 0 THEN TRUE ELSE {Reservation.SiteID} = {?Site}) and
{Reservation.ReservationStatus} in ["Pending"]

Thanks,

Edwin
Crystal ReportsMicrosoft Word

Avatar of undefined
Last Comment
James0628

8/22/2022 - Mon
peter57r

I don't know which field might contain 'overbooked' but the syntax you want is...


and instr({Table field},  "overbooked") >0  and
ASKER CERTIFIED SOLUTION
James0628

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
James0628

FWIW, I think Peter's post deserves at least some of the points, since it's a valid solution.  I was just providing some alternatives.  You can ask to have the question re-opened and split the points between us, if you like.

 James
Your help has saved me hundreds of hours of internet surfing.
fblack61