M
Matthew Ellis
I am trying to use a pop up form with a combo box that,
when an item is selected from the list, it opens a report,
which is based on a query. I want to use the item selected
in the combo box to be used as criteria in the query. I
can do this when I am just running the query, but when I
try to run the report this way it will either return all
records on the report or it will return no records at all.
I am using the following criteria in the query:
[Forms]![reportusersearch]![Combo0]
and the code behind the "on change" event on the combo is:
Private Sub Combo0_Change()
Me.Combo0 = ""
DoCmd.OpenReport "rptcompinfouser", acViewPreview
The report runs off of the query: qrycompinfobyuser
Any help is appreciated. (By the way, the naming
conventions used are not mine, this is an inherited
database)
Thanks in advance.
Matt Ellis
when an item is selected from the list, it opens a report,
which is based on a query. I want to use the item selected
in the combo box to be used as criteria in the query. I
can do this when I am just running the query, but when I
try to run the report this way it will either return all
records on the report or it will return no records at all.
I am using the following criteria in the query:
[Forms]![reportusersearch]![Combo0]
and the code behind the "on change" event on the combo is:
Private Sub Combo0_Change()
Me.Combo0 = ""
DoCmd.OpenReport "rptcompinfouser", acViewPreview
The report runs off of the query: qrycompinfobyuser
Any help is appreciated. (By the way, the naming
conventions used are not mine, this is an inherited
database)
Thanks in advance.
Matt Ellis