Could someone explain the use of InStr or point me to a resource that explains it so I can understand the following query (not developed by me):
IIf(InStr([Owner],”,”),Trim(Right(Trim([Owner]),Len(Trim([Owner]))-InStr(1,[Owner],”,”))) & ” ” & Trim(Left([Owner],InStr(1,[Owner],”,”)-1)),[Owner])
The expert who developed this for me is lost in the mists of time. I understand the syntax and function up to the point where you subtract based on InStr(1,[Owner],”,”))) etc. I don’t understand why the subtraction is used, why the 1 is in the parantheses, etc.
Thanks for your help.