I have an agent I am using to validate many fields. I am suppliying 2 examples below. Every fields works as expected with the exception of CHASSISVIN where I am trying to ensure 17 characters are entered. No matter how many characters are in the field it still display the messagebox. Can someone please assist me with what I am doing wrong? Thanks in advance.
Elseif (source.fieldGetText (“ChassisModel”) = “”) And (source.fieldGetText (“UnitType”) <> “Other”) Then
Messagebox ("Chassis Model is a required field.")
Call source.GoToField ("ChassisModel")
continue = False
Exit Sub
Elseif (source.fieldGetText ("ChassisVIN") <> Len17) And source.fieldGetText ("UnitType") <> "Other" Then
Messagebox ("Chassis VIN must be 17 characters.")
Call source.GoToField ("ChassisVIN")
continue = False
Exit Sub