T
Tanya
Hi All,
I am running a report using the criteria selected from a combo box and i
have used the following union query to accomplish this:
Me.cmbCriteria.RowSource = "SELECT DISTINCT genus, genus FROM Plant UNION
ALL SELECT '<All>', '*' ORDER BY genus;"
I have set a parameter on the report called @genus to equal the selection in
the combo box eg
@Genus=[Forms]![Main]![frmReporting]![cmbCriteria]
When i run the form the combo box works fine and shows a list of the genus
names aswell as the <all> option. and then when i pressed the ok button to
view that report if one of those names are selected it works fine. However
when i select the <all> option it brings the report up with a #error insted
of showing all genus's.
Im sure im just missing something simple.
Thanks in advance
Tanya
I am running a report using the criteria selected from a combo box and i
have used the following union query to accomplish this:
Me.cmbCriteria.RowSource = "SELECT DISTINCT genus, genus FROM Plant UNION
ALL SELECT '<All>', '*' ORDER BY genus;"
I have set a parameter on the report called @genus to equal the selection in
the combo box eg
@Genus=[Forms]![Main]![frmReporting]![cmbCriteria]
When i run the form the combo box works fine and shows a list of the genus
names aswell as the <all> option. and then when i pressed the ok button to
view that report if one of those names are selected it works fine. However
when i select the <all> option it brings the report up with a #error insted
of showing all genus's.
Im sure im just missing something simple.
Thanks in advance
Tanya