shellj
Technical User
- Sep 19, 2002
- 30
My database stores stock details. Once records are added to the Stock table using a form, a unique number is generated using the information input. For example, items added from the Designer Fornarina have a code 18, if the item is a skirt the code is 12, if the colour is black the code is 01 and if the size is Small the code is 01. The number should look as follows: 181299990101. The problem I am having concerns the '9999' part of the code. If I have two completely different skirts (ie design) but the colour, designer and size is the same, I need to increment the '9999' by one so that I have unique numbers for each item of stock.
Can anyone advise me of the best way to achieve this?
Thanks in advance.
Can anyone advise me of the best way to achieve this?
Thanks in advance.