F
Fipp
I am trying to open the report "hitchartrpt" With it being filtered on
"opponent", "season" and "team"
I have a filter form and on that form there are 3 list boxes. season is
single select, both opponent and team are multi select list boxes. For both
multi select list boxes I have written some code that enters the values of
the multi select list boxes into data as follows (ex: "Hawaii","Texas") this
data is entered into the control [opponentselected] and [teamselected] for
the respective list boxes.
Here is the code that I have written on the click of the "hitchartrpt"
button, I am not sure what I am doing wrong?
Private Sub hitchartrpt_Click()
DoCmd.OpenReport "hitchartrpt", acViewPreview, , _
"opponent in (" & Me.opponentselected & ") AND " & _
"season = " & Me.cboseason & " AND " & _
"team in (" & Me.teamselect & ")"
End Sub
"opponent", "season" and "team"
I have a filter form and on that form there are 3 list boxes. season is
single select, both opponent and team are multi select list boxes. For both
multi select list boxes I have written some code that enters the values of
the multi select list boxes into data as follows (ex: "Hawaii","Texas") this
data is entered into the control [opponentselected] and [teamselected] for
the respective list boxes.
Here is the code that I have written on the click of the "hitchartrpt"
button, I am not sure what I am doing wrong?
Private Sub hitchartrpt_Click()
DoCmd.OpenReport "hitchartrpt", acViewPreview, , _
"opponent in (" & Me.opponentselected & ") AND " & _
"season = " & Me.cboseason & " AND " & _
"team in (" & Me.teamselect & ")"
End Sub