Hello..
I'm trying to do this for 3 days and nothing..
this is what i have:
2 tables: Company and Region
1 form: mainForm
a multi selection list box (Regions in it)
a button: filterBut
i would like to select fiew regions and by pressing a button (filterBut) filter all companys in selected regions.
i've tried to use this:
Private Sub filterBut_Click()
Forms![mainForm].Form.Filter = "region=" & Me. ????
Forms![mainForm].Form.FilterOn = True
End Sub
but i have no idea what to put after Me. ?
all i found is this:
list box filter to report
but that gives a string and it's not what i need
Any ideas or hints how to make it work?
Thanks..
Mateusz Zawada
I'm trying to do this for 3 days and nothing..
this is what i have:
2 tables: Company and Region
1 form: mainForm
a multi selection list box (Regions in it)
a button: filterBut
i would like to select fiew regions and by pressing a button (filterBut) filter all companys in selected regions.
i've tried to use this:
Private Sub filterBut_Click()
Forms![mainForm].Form.Filter = "region=" & Me. ????
Forms![mainForm].Form.FilterOn = True
End Sub
but i have no idea what to put after Me. ?
all i found is this:
list box filter to report
but that gives a string and it's not what i need
Any ideas or hints how to make it work?
Thanks..
Mateusz Zawada