Hi,
I have a search form which allows to search for various criteria such as postcode.
The code for building the filter is as follows:
Can someone please suggest a way of enabling the user to search for multiple postcodes such as NE1 "OR" NE2 using the same field in the form without having to write OR ((tblBuisnessAddress.Postcode)="NE2") OR....... etc.
Thanks in advance
I have a search form which allows to search for various criteria such as postcode.
The code for building the filter is as follows:
Code:
varWhere = (varWhere + " AND ") & _
"([ContactID] IN (SELECT ContactID FROM tblBusinessAddress " & _
"WHERE tblBusinessAddress.postcode LIKE '" & Me.txtPostcode & "'))"
Can someone please suggest a way of enabling the user to search for multiple postcodes such as NE1 "OR" NE2 using the same field in the form without having to write OR ((tblBuisnessAddress.Postcode)="NE2") OR....... etc.
Thanks in advance
