J
John Milbury-Steen
Hi Access gurus,
I want to modify the criteria in a query based on a value in a form. The
user in the form may choose to see all records or one record. (He sets
[Choice] to "See One Record" or "See All Records"). If the user wants to
see one record, he chooses it from a menu and sets [RecordChosen]. So Why
doesn't this work for the criteria in the query:
IIf([Forms]![ChoiceForm].[Choice] = "SeeOneRecord",
([Forms]![ChoiceForm].[RecordChosen], *)
It's the last part of the IIf that doesn't work. [RecordChosen] refers to a
number. What can I use besides * to refer to all records, as if there were
no criteria?
I want to modify the criteria in a query based on a value in a form. The
user in the form may choose to see all records or one record. (He sets
[Choice] to "See One Record" or "See All Records"). If the user wants to
see one record, he chooses it from a menu and sets [RecordChosen]. So Why
doesn't this work for the criteria in the query:
IIf([Forms]![ChoiceForm].[Choice] = "SeeOneRecord",
([Forms]![ChoiceForm].[RecordChosen], *)
It's the last part of the IIf that doesn't work. [RecordChosen] refers to a
number. What can I use besides * to refer to all records, as if there were
no criteria?