Try this addition to the SELECT CASE structure:
Case Else
resL = strName
Then the final concatenation of SplitNamesAll should just return the original full string.
Try this addition to the SELECT CASE structure:
Case Else
resL = strName
Then the final concatenation of SplitNamesAll should just return the original full string.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
That fails on an example like this:
Baker, Jr, James
What do you by 'fails' - error message, wrong results, nothing happens?
I expect it returns wrong result because as I already pointed out in post 14 - how is the code supposed to know that Jr is not first name?
Perhaps the 'powers that be' need to read this thread.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Sorry, I should have been more specific. The query results in a blank value whereas before without the additional code, it returned James Baker, Jr
The Case Else needs to be placed just above the End Select line.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I still get no value.
It works for me. Post your edited code for analysis.
Ooops, sorry. Try:
281 Case Else
282 SplitNamesAll = strName
290 End Select
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
That seems to work now! Thanks for all the assistance!!!