I have a field titled Owner with data such as this:
Smith, John
Johnson, Jim H & Sally K
Walters, Robert G & Betty R Tr
Adams Trust
Smith Industries
Davidson, Dorothy R Trustee
Most data is formatted like record 1. I use an Update Query to populate an empty field (PropertyOwner) by moving the last name to the end. The query searches based on the existence of a comma:
IIf(InStr([Owner],”,”),Trim(Right(Trim([Owner]),Len(Trim([Owner]))-InStr(1,[Owner],”,”))) & ” ” & Trim(Left([Owner],InStr(1,[Owner],”,”)-1)),[Owner])
However, the query produces poor results when it encounters the various versions of “trust”–Tr, Trustee, Trust.
Can someone help me modify my query syntax to deal with these 3 versions of “trust” at the end of my owner names?
I want my results to be:
John Smith
Jim H & Sally K Johnson
Robert G & Betty R Tr
Adams Trust
Smith Industries
Dorothy R Davidson Trustee
Thanks for your help.
Jeff Hamilton