Substring in IIF

S

Stukmeister

I need to compare the first three characters of string1 to the first three
characters of string2. How can I do this?
 
F

fredg

I need to compare the first three characters of string1 to the first three
characters of string2. How can I do this?

=IIf(Left(String1,3) = Left(String2,3),"Equal","Not Equal")
 
Top