Option Filter and Reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an option filter in a form. I want to print message on a report based
on which option is selected.

if option1 then print message1
if option2 then print message2

Thanks for your help.

ScottF
 
In the control source of the text field in the report where you want to
display the message, you can write

=IIf(Forms![FormName]![FieldName] = "Option1" ,"First Message","Second
Message")
 
I have an option filter in a form. I want to print message on a report based
on which option is selected.

if option1 then print message1
if option2 then print message2

Thanks for your help.

ScottF

Add an unbound text control to the report.
Set it's control source to:

=IIf(forms!formName!OptionGroupName = 1, "Message1","Message2")

The form must be open when the report is run.
 

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

Back
Top