Hi, I have a field that I use as a unique id/counter in a database. The field is numeric and the total length is 10 digits. The first 6 digits of the number are used to identify the departments in my company ex:
744445 (accounting department)
745587 (personnel department), etc.
The last four digits are added onto the above department numbers during record entry to increment the count of that particular departments record entry and this is done manually by the user ex:
7444450001, 744450002, etc.
7455870001, 7455870002, 745587003, etc.
I have about 8 departments in my company and don’t expect it to increase. What I would like to do in the user entry form either in fields (8 separate for each department) or listbox showing the highest number already saved in the database for that department. This will enable the user to check the list or field(s) to know which number they can use next for that department ex:
The highest number for accounting: 744445-0002
The highest number for personnel: 745587-0003
Is there a code I could put in a field(s) or listbox that will show the max for each department seperately?
Thanks.
744445 (accounting department)
745587 (personnel department), etc.
The last four digits are added onto the above department numbers during record entry to increment the count of that particular departments record entry and this is done manually by the user ex:
7444450001, 744450002, etc.
7455870001, 7455870002, 745587003, etc.
I have about 8 departments in my company and don’t expect it to increase. What I would like to do in the user entry form either in fields (8 separate for each department) or listbox showing the highest number already saved in the database for that department. This will enable the user to check the list or field(s) to know which number they can use next for that department ex:
The highest number for accounting: 744445-0002
The highest number for personnel: 745587-0003
Is there a code I could put in a field(s) or listbox that will show the max for each department seperately?
Thanks.