Hi everyone,
I was wondering if someone can offer advice on creating an ID code. The idea I want is to have a code along the lines of (for example) THCS1234. Basically, this can be broken down into 3 parts - the first 2 letters are in relation to the results of one combobox, and the second 2 letters are the result of another combobox. Ok, so this part is easy enough to do.
The next thing I want to do is to have a number generated at the end of the combination of the letters. I would like to be able to search through all records which begin their ID with THCS (still using this example), and then to parse the data so that I can then find the max number, and then simply add 1 for the new code. I hope I have explained that well. Does anyone have any suggestions?
Thank you
I was wondering if someone can offer advice on creating an ID code. The idea I want is to have a code along the lines of (for example) THCS1234. Basically, this can be broken down into 3 parts - the first 2 letters are in relation to the results of one combobox, and the second 2 letters are the result of another combobox. Ok, so this part is easy enough to do.
The next thing I want to do is to have a number generated at the end of the combination of the letters. I would like to be able to search through all records which begin their ID with THCS (still using this example), and then to parse the data so that I can then find the max number, and then simply add 1 for the new code. I hope I have explained that well. Does anyone have any suggestions?
Thank you