Hi,
I am trying to compare a recordset saved as a string with another string...
Code:
If Right(Trim(rs![Company_Street]), 6) = "street" Then ' like
rs![Company_Street] = Replace(rs![Company_Street], "street", "str.")
End If
If Right(Trim(rs![Company_Street]), 6) = "Street" Then 'like
rs![Company_Street] = Replace(rs![Company_Street], "Street", "Str.")
End If
The problem is: Mainstreet and Main Street are equal when comparing.... and that is not the case...
An idea how to solve this... I tried "like" but it did not work.
I also tried to do a Select Case Statement...
Code:
Select Case rs![Company_Street]
Case Is = Right(Trim(rs![Company_Street]), 6) = "street"
rs("Company_Street") = Replace(rs![Company_Street], "street", "str.")
....
....
End Select
But it did not work!