Conditional Paragraph

A

Arndres

I have a form letter report where I am trying to enter a paragraph if two
parameters in a field are not met. I am using the formula
=IIf([groupno]<>"M15625" Or <>"M51658","If you have chosen this option...")
But it does not seem to like the Or operator or the And operator. Please
Help Thanks
 
B

Brendan Reynolds

Arndres said:
I have a form letter report where I am trying to enter a paragraph if two
parameters in a field are not met. I am using the formula
=IIf([groupno]<>"M15625" Or <>"M51658","If you have chosen this
option...")
But it does not seem to like the Or operator or the And operator. Please
Help Thanks


That would be ...

=IIf([groupno]<>"M15625" Or [groupno]<>"M51658","If you have chosen this
option...")

You have to include the complete condition on both sides of the "Or".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top