I need to change a string that contains a name in the "First Last" format to a "Last, First" format. The problem is, the string may be like "John Smith", or it may be "Mr. John Smith" or even "Mr. John A. Smith". How can I eliminate the "Mr." part and the middle name/initial part, and then make it "Smith, John"? I hate strings btw...I foresee a lot of Trim(Right), Trim(Left) crap... please make it easier!
My goal is to select records from the database field NAME by the first letter of the last name. The field NAME contains names like "John Smith" "Mr. Roger A. Smith" "Mr. Jones" etc. I just need a search function that returns the Smith's but not the Jones.