View Full Version : Using Conditionals in Query


oz
12-20-2001, 12:05 AM
Hi people!

I have to use conditional sentences within the queries but no use. Should I try the modules or what do you recommend me? If I can solve this problem everything would sure be clear.Need urgent Help!

Regards,
Ozz

Dreamboat
12-20-2001, 06:23 AM
Give us some examples of the kinds of conditions, oz.

glynch
12-21-2001, 04:31 AM
You can use an immediate IF statement in your query. Usually they are used in the criteria line but can be used with the field name as well. Typical usage:

Iif(formABC!fieldABC > 10, True, False)

It is an If,Then, Else statement all in one expression, the commas separate the parts of the experession.

Iif(IF this statement is true, THEN this field has this value, ELSE it has this value)

Hope this helps.

oz
12-24-2001, 11:25 PM
Dear Glynch,

You're great. It works.