Anyone have the VB Code to create a unique username from the Firstname/Lastname fields in my table? It needs to have the following criteria:
1) Basic username = 1st Initial + 1st 7 characters of last name
2)If username is a duplicate, a number starting with # 1 will be added to the end (bsmith1, bsmith2, etc.)
3)Username cannot be shorter than 5 characters. If it is shorter than a number starting with # 1 will added to the end to make the username 5 characters (ie jcox1 or jho11)
I did see a rudimentary beginning to the type of username I need on thread181-86590, but it didn't generate unique usernames.
Thanks for all your help.
1) Basic username = 1st Initial + 1st 7 characters of last name
2)If username is a duplicate, a number starting with # 1 will be added to the end (bsmith1, bsmith2, etc.)
3)Username cannot be shorter than 5 characters. If it is shorter than a number starting with # 1 will added to the end to make the username 5 characters (ie jcox1 or jho11)
I did see a rudimentary beginning to the type of username I need on thread181-86590, but it didn't generate unique usernames.
Thanks for all your help.