G
Guest
Win xp and Access 2003 - I have a report called churchreport based on a query
called churchquery (which is two tables joined). I have list box on a form
called countryselectform with the list box called lista2. In my report I
have a grouped field called districtcountry. The user is going to select
multiple countries in the list box and I want the report to only display
churches that are in those countries from the list box.
I have the following code when I open the report.
Private Sub Report_Open(Cancel As Integer)
Me.Filter = districtcountry = "& [Forms]![countryselectform]![Lista2]"
Me.FilterOn = True
End Sub
When I click my command button on the form to preview this report, I get an
error that says false and asks for input. Not sure where I am going wrong.
called churchquery (which is two tables joined). I have list box on a form
called countryselectform with the list box called lista2. In my report I
have a grouped field called districtcountry. The user is going to select
multiple countries in the list box and I want the report to only display
churches that are in those countries from the list box.
I have the following code when I open the report.
Private Sub Report_Open(Cancel As Integer)
Me.Filter = districtcountry = "& [Forms]![countryselectform]![Lista2]"
Me.FilterOn = True
End Sub
When I click my command button on the form to preview this report, I get an
error that says false and asks for input. Not sure where I am going wrong.