Hi, This is a repost from my yahoo answers because I haven't really received any replies on there.
Alright so I have a Database and I'm attempting to get a report to open up after I select something from a combo box. So far I have the Combo box "Combo24" which lists organisms. Once an organism is clicked it should open a report "Report 1" which gives me all of the samples that are part of that organism from a Query "Query1."
So far the combo box opens up the correct Report but does not display any results in it. When I made the report prompt user for input it actually works...
Criteria for organism in the report is [Forms]![Navigation Form]![Combo24]
Event for the combo box is:
Private Sub Combo24_AfterUpdate()
DoCmd.OpenReport "Report1", acViewPreview
DoCmd.Close acForm, "Navigation Form"
End Sub
Any help on getting it to display results? thanks
Alright so I have a Database and I'm attempting to get a report to open up after I select something from a combo box. So far I have the Combo box "Combo24" which lists organisms. Once an organism is clicked it should open a report "Report 1" which gives me all of the samples that are part of that organism from a Query "Query1."
So far the combo box opens up the correct Report but does not display any results in it. When I made the report prompt user for input it actually works...
Criteria for organism in the report is [Forms]![Navigation Form]![Combo24]
Event for the combo box is:
Private Sub Combo24_AfterUpdate()
DoCmd.OpenReport "Report1", acViewPreview
DoCmd.Close acForm, "Navigation Form"
End Sub
Any help on getting it to display results? thanks