I can’t test the code out at the moment (no laptop), but in a If statement as below:
Dim StrA As String, StrB As String
IF StrA = StrB Then
'code for true result
Else
'code for false result
End If
Does the Ifstatement check the strings in a binary or textual manner?
The comparison is usually textual, stra=STRA, but you can use StrComp:
http://office.microsoft.com/en-ie/access-help/strcomp-function-HA001228914.aspx