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

like statement help

Status
Not open for further replies.

deebaglee

Technical User
May 16, 2003
301
GB
hi i am trying to drop a formula to highlight if a operator has booked off a job incorrectly
i tried this
If LooksLike ({@123}, ["BC","BE","SC","BP","SE","SP","CL","HC","DC","NPD"]) Then "" ELSE "WARNING ERROR INCORRECT BOOKING OFF"
but i keep gettingtold a string is required just before the [

also i need some help trying to write a formula something like this

if right(field),3 = isnot like ["BC","BE","SC","BP","SE","SP","CL","HC","DC","NPD"]) then "error detected"
cheers
 
Try this instead

whilePrintingRecords;
If {@123}in {BC","BE","SC","BP","SE","SP","CL","HC","DC",
"NPD"]) Then
""
ELSE
"WARNING ERROR INCORRECT BOOKING OFF";

*****************************************

WhilePrintingRecords;
if right((field),3) in ["BC","BE","SC","BP","SE","SP",
"CL","HC","DC","NPD"]) then
""
else
"error detected";

those should do the trick





Jim Broadbent
 
WhilePrintingRecords;
if right((field),3) in ["BC","BE","SC","BP","SE","SP",
"CL","HC","DC","NPD"]) then
""
else
"error detected";
worked perfectly
thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top