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

Help with Range formula

Status
Not open for further replies.

smiles44

Technical User
Jun 10, 2005
3
US
My formula below is giving an error saying 'The keyword "Then" is missing" and it highlights 'NOT'.

If {table1.TASKS} = 0 OR {table1.INTERVAL_LENGTH} NOT IN ["AA", "BB", "CC", "DD"] THEN "ERROR/EXCEPTION"

I would appreciate any help.

Thanks,
PS
 
Hi,
Use this:

Code:
If ( {table1.TASKS} = 0 OR NOT ( {table1.INTERVAL_LENGTH} IN ["AA", "BB", "CC", "DD"]) ) 
THEN "ERROR/EXCEPTION"

In Crystal the Not preceeds the condition to be tested.


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top