Is there a way that I can automatically generate an ID when "Add New" button is clicked? The twist for this problem is that there are multiple categories and the abbreviation for each category is part of the ID.
Example
Current record:
Category: MAINT (this is a combo box which lists both ID and Name, displayed as MAINT - Maintenance)
ID: MAINT001
So, if a user clicks "Add New" then a blank form would be
generated (this is not a problem). Then, when they select a category (ex: MAINT, which is Maintenance) there would be code which looks up the next available number (ID) within the MAINT set.
New record:
Category: MAINT
ID: MAINT002
Please let me know if you can help. If I have explained this poorly, let me know and I will try and clarify.
In advance, thank you.
Example
Current record:
Category: MAINT (this is a combo box which lists both ID and Name, displayed as MAINT - Maintenance)
ID: MAINT001
So, if a user clicks "Add New" then a blank form would be
generated (this is not a problem). Then, when they select a category (ex: MAINT, which is Maintenance) there would be code which looks up the next available number (ID) within the MAINT set.
New record:
Category: MAINT
ID: MAINT002
Please let me know if you can help. If I have explained this poorly, let me know and I will try and clarify.
In advance, thank you.