G
Guest
I am trying to get the Like operator to work in a situation where a
street address is entered. I would like someone who enters 44th to be able
to pull up all records with 44th in the string such as 44th Street, 44th ST
SW, West 44th Avenue, ect. The code I have now is designed to pull up exact
matches. I have tried changing it but cant seem to get it to work. Here is
a portion of the working code.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TblImproved"
If Not IsNull(Me![FilterStreet]) Then
stLinkCriteria = "[Street]=" & "'" & Me![FilterStreet] & "'"
End If
How would I change this? Any help would be appreciated. Thanks.
street address is entered. I would like someone who enters 44th to be able
to pull up all records with 44th in the string such as 44th Street, 44th ST
SW, West 44th Avenue, ect. The code I have now is designed to pull up exact
matches. I have tried changing it but cant seem to get it to work. Here is
a portion of the working code.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TblImproved"
If Not IsNull(Me![FilterStreet]) Then
stLinkCriteria = "[Street]=" & "'" & Me![FilterStreet] & "'"
End If
How would I change this? Any help would be appreciated. Thanks.