Nov 8, 2001 #1 ftpdoo Programmer Aug 9, 2001 202 GB Hi, I've got a string which contains contains a persons Chistian name and then their Surname in brackets. ie: Joe (Bloggs) How would I extract the surname within the backets just to return "Bloggs"?? Thankx, Jonathan
Hi, I've got a string which contains contains a persons Chistian name and then their Surname in brackets. ie: Joe (Bloggs) How would I extract the surname within the backets just to return "Bloggs"?? Thankx, Jonathan
Nov 8, 2001 1 #2 MichaelRed Programmer Dec 22, 1999 8,410 US MyName = "Joe (Bloggs)" Lbracket = INStr(MyName, "(" Rbracket = INStr(MyName, "" SurName = Mid(MyName, LBracket + 1, Rbracket - Lbracket - 1) ? SurName Bloggs MichaelRed m.red@att.net There is never time to do it right but there is always time to do it over Upvote 0 Downvote
MyName = "Joe (Bloggs)" Lbracket = INStr(MyName, "(" Rbracket = INStr(MyName, "" SurName = Mid(MyName, LBracket + 1, Rbracket - Lbracket - 1) ? SurName Bloggs MichaelRed m.red@att.net There is never time to do it right but there is always time to do it over