View Full Version : Display words based on another field???


roadrage
05-18-2009, 12:29 PM
Hi could some one tell me if this is possible? I have a report that display fields based on a query. What i want is for the report to also include the words "Fantastic Choice" if the query returns "F" in the choice type field?

MSAccessRookie
05-18-2009, 12:38 PM
Hi could some one tell me if this is possible? I have a report that display fields based on a query. What i want is for the report to also include the words "Fantastic Choice" if the query returns "F" in the choice type field?

If all you need is a single special case (F = "Fantastic Choice"), then using an simple IIf() Statement should get you what you want. If there is more than one special case, then you will need a compound IIf() Statement, or you might want to consider using a Select() Statement.

pbaldy
05-18-2009, 12:38 PM
A textbox with a control source of:

=IIf(ChoiceType = "F", "Fantastic Choice", "")

roadrage
05-18-2009, 12:55 PM
Thanks for your immediate replies, that works great thanks!!