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. Once this number is generated, I need to search the Stock table for this number to ensure there are no duplicates before I save the record. If a record exists with this number but the Designer, Description, Colour and Size are the same, I need to increment '9999' by one.
Can someone help me with this? I'm not sure of the code I need to write.
Thanks in advance
Can someone help me with this? I'm not sure of the code I need to write.
Thanks in advance