W
Williams
I have a form that I am using as a dialog box for users to select their
criteria prior to running a query or a report. One of the fields on the form
is a combo box. If a user selects "All" from the combo box, I do not want
criteria assigned to this field. For example the field is [Status] if they
select "Active" then active records would display. If they select "closed",
only closed records would display. But if they select "All" then I want all
status types to appear. I thought I could use an * in an IIf statement, but
it does not seem to work. Here is my function:
IIf([Forms]![F_Prompt_AgrTyp_Timeframe]![Cmbo_Status]="All","*",[Forms]![F_Prompt_AgrTyp_Timeframe]![Cmbo_Status])
criteria prior to running a query or a report. One of the fields on the form
is a combo box. If a user selects "All" from the combo box, I do not want
criteria assigned to this field. For example the field is [Status] if they
select "Active" then active records would display. If they select "closed",
only closed records would display. But if they select "All" then I want all
status types to appear. I thought I could use an * in an IIf statement, but
it does not seem to work. Here is my function:
IIf([Forms]![F_Prompt_AgrTyp_Timeframe]![Cmbo_Status]="All","*",[Forms]![F_Prompt_AgrTyp_Timeframe]![Cmbo_Status])