How do I change my query so that it recognizes <ALL> when <ALL> is the choice selected from an unbound combo box on a form?
On Form1 I have 3 unbound combo boxes that are used to set the parameters for a report. Using the following union query, I added all to the combo box called Occassion
SELECT OccassionType.Occassion, OccassionType.OccassionID FROM OccassionType UNION SELECT '<ALL>', '0' FROM OccassionType
ORDER BY OccassionType.Occassion;
In my query for the report I have been using
[Forms]![Form1]![Occassion]
to obtain the selected criteria from Form1. This does not work now that I have added <ALL> to the choices.
How would I change the query to recognize <ALL> as an option and to in turn create the report with all records.
Any help would be greatly appreciated.
Thanks
On Form1 I have 3 unbound combo boxes that are used to set the parameters for a report. Using the following union query, I added all to the combo box called Occassion
SELECT OccassionType.Occassion, OccassionType.OccassionID FROM OccassionType UNION SELECT '<ALL>', '0' FROM OccassionType
ORDER BY OccassionType.Occassion;
In my query for the report I have been using
[Forms]![Form1]![Occassion]
to obtain the selected criteria from Form1. This does not work now that I have added <ALL> to the choices.
How would I change the query to recognize <ALL> as an option and to in turn create the report with all records.
Any help would be greatly appreciated.
Thanks