S
Sue Compelling
Hi ALL
I have the following query (kindly provided by Michel) which works a treat,
insofar as if I enter WAYWARD in the street name it returns all records of
WAYWARD.
However, there will be mulitple instances where the address is actually a
"corner" of and the name in the street name may actually be:
Wayward Road & Short Street or
Short & Wayward
Short & Wayward Streets
Wayward
How do I change my filter to bring back all records Like "Wayward*" or
"Wayward" or "*Wayward*" or "*Wayward"
TIA
Private Sub txtStreetName_AfterUpdate()
Dim strFilterVal As String
If Not IsNull(Me.txtStreetName) Then
strFilterVal = Me.txtStreetName
Me.Filter = "StreetName = '" & strFilterVal & "'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
I have the following query (kindly provided by Michel) which works a treat,
insofar as if I enter WAYWARD in the street name it returns all records of
WAYWARD.
However, there will be mulitple instances where the address is actually a
"corner" of and the name in the street name may actually be:
Wayward Road & Short Street or
Short & Wayward
Short & Wayward Streets
Wayward
How do I change my filter to bring back all records Like "Wayward*" or
"Wayward" or "*Wayward*" or "*Wayward"
TIA
Private Sub txtStreetName_AfterUpdate()
Dim strFilterVal As String
If Not IsNull(Me.txtStreetName) Then
strFilterVal = Me.txtStreetName
Me.Filter = "StreetName = '" & strFilterVal & "'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub