
Originally Posted by
jeroen4691
Hi,
table users:
Voornaam |
Achternaam |
Els |
Worp van der |
Table ID:
salnr |
naam |
achternaam |
3827 |
Worp, E.G.J.M. van der |
Worp |

Originally Posted by
jeroen4691
All fields have the same punctuation, like lastname "comma" initials. the fiel I need to match is only "lastname" , so i need to find a filter to give me all lastnames before the "comma" .....
Just trying to understand :
If it is simply getting "Worp" from the naam field "Worp, E.G.J.M. van der" from Table ID, given the criteria that the SurName "Worp" in the naam field is essentially and immediately followed by a comma, then :
Code:
ExtractedLastName: Left([naam],InStr([naam],",")-1)
which in turn can be used to join to the Achternaam from the Table Users.
However, I notice that the table Users has Achternaam as "Worp van der".
Also, is there no possibility of 2 Users having the same SurName.
Thanks