Substring in IIF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to compare the first three characters of string1 to the first three
characters of string2. How can I do this?
 
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")
 
Back
Top