T
thewabit via AccessMonster.com
I have a form with a listbox and 2 graphs. When an item is selected on the
listbox, the chart displays the appropriate informatiom. But when the
"preview report" button is selcted at the bottom, the form displays graphs
for ALL items in the listbox...not the one selected. I am missing passing
something to the report but I don't know what.
Here is the code behind the button:
Private Sub Command20_Click()
Dim stDocName As String
stDocName = "rptTrend_HF"
DoCmd.OpenReport stDocName, acPreview
End Sub
listbox, the chart displays the appropriate informatiom. But when the
"preview report" button is selcted at the bottom, the form displays graphs
for ALL items in the listbox...not the one selected. I am missing passing
something to the report but I don't know what.
Here is the code behind the button:
Private Sub Command20_Click()
Dim stDocName As String
stDocName = "rptTrend_HF"
DoCmd.OpenReport stDocName, acPreview
End Sub