r/MSAccess • u/Weak-Ant-7577 • 14h ago
[WAITING ON OP] Creating a custom SKU number based on ClassIDs
2
Upvotes
I’m currently using an excel spreadsheet to keep track of my item master data and now moving over to building a database. The way my SKUs are set up is I have ClassIDs by category of product, example:
10 - Class 1
11 - Class 2
12 - Class 3
etc. My SKUs within the class are sequential, 100001, 100002, 110001, 110002 etc.
How can I write a macro that when I create a new entry, selecting the ClassID of the new item generates the next sequential number within that class?