Hi all,
I'm looking to set up a database for part numbers. The part numbers are created by a combination of category codes and a sequential number.
It will end up looking something like xx-yy-xyz-001 xx-yy-xyz-002 aa-bb-abc-001 aa-bb-abc-002 and so on
I've set up a user interface so you can select the first categories from a combobox, but since the number is sequential i'd like to have it set up so you can either enter an unused number OR automatically generate the first unused number in the string.
So...The code will need to find all other numbers previously entered that have the same starting digits up to the number, and then find the maximum number and add one to that. (i can worry about no getting duplicate numbers later)
any help will be greatly appreciated and thanks in advance.
Bookmarks