I have a database/table of customers and a form for users to add customer details via a macro button. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I want to create a UID automatically by using the first five characters of the surname and the first character of the firstname followed by 01 and then increment if 01 has been used to 02 and if 02 has been used increment to 03 and so on. <o></o>
i.e.
James Brown = BROWNJ01<o></o>
Jonathan Brownson = BROWNJ02<o></o>
Jamie Brown = BROWNJ03…. etc<o></o>
<o></o>
The UID's are store in column A, the firstnames in B and surnames C.<o></o>
<o></o>
I'm having trouble with the find VBA command and counting the number of occurrences of a name after it has been added to the customer table.
Any help would be appreciated.<o></o>
<o></o>
I want to create a UID automatically by using the first five characters of the surname and the first character of the firstname followed by 01 and then increment if 01 has been used to 02 and if 02 has been used increment to 03 and so on. <o></o>
i.e.
James Brown = BROWNJ01<o></o>
Jonathan Brownson = BROWNJ02<o></o>
Jamie Brown = BROWNJ03…. etc<o></o>
<o></o>
The UID's are store in column A, the firstnames in B and surnames C.<o></o>
<o></o>
I'm having trouble with the find VBA command and counting the number of occurrences of a name after it has been added to the customer table.
Any help would be appreciated.<o></o>