Hello,
I'm not sure if this is possible, I certainly hope so, so here goes...
I have a report, attached to a query, it requires user input for one of the match criteria.
However, I don't want to have the user input the full and correct syntax, is it possible to supply the criteria via an IIF based on user input
...here is the senario...
field = ContactTypeID
there are many types for this field (Prospect, Member, X-Member, Withdrawn)
I want to ask the user for input but only give them the option "Member" or "*" for all (well actualy only current members and x-members).
If * is entered no records are found, So I thought I'd use an IIF to supply the criteria based on user input like so..
So on the Criteria section in design view on the query I place that IIF, it correctly asks for input and if I enter 'Member' it supplies me all members as expected, yet if I type *, no records are selected.
Is it possible, and if so where am I going wrong.
Many thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I'm not sure if this is possible, I certainly hope so, so here goes...
I have a report, attached to a query, it requires user input for one of the match criteria.
However, I don't want to have the user input the full and correct syntax, is it possible to supply the criteria via an IIF based on user input
...here is the senario...
field = ContactTypeID
there are many types for this field (Prospect, Member, X-Member, Withdrawn)
I want to ask the user for input but only give them the option "Member" or "*" for all (well actualy only current members and x-members).
If * is entered no records are found, So I thought I'd use an IIF to supply the criteria based on user input like so..
Code:
IIf([Please enter either Member or *]="*","Member Or X-Member","Member")
So on the Criteria section in design view on the query I place that IIF, it correctly asks for input and if I enter 'Member' it supplies me all members as expected, yet if I type *, no records are selected.
Is it possible, and if so where am I going wrong.
Many thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.