S
Shelley
I have a database that stores Stock Details for a Designer
boutique. The problem I am having is as follows:
I have set up a table that contains all stock details such
as Designer, Style, Sizes, Colours, Costs etc. For each
record entered I need to generate a unique code that is
recognisable when broken down. For example, any items from
the Designer Fornarina will begin with 15; if the item is
a skirt, the second 2 digits would be 13; the last 4
digits represent colour and size. My code should look as
follows: 151399990110. My problem is trying to assign a
4 digit number for the '9999' that goes after style. So,
if i have 2 skirts that are both Fornarina, the same size
and colour, the '9999' is incremented by one so that I
have a unique code. I would also like to be able to start
from 0001 for each designer/style. I have been able to
assign the first four and last four digits to the code
using a form and query but I'm not sure how to increment
the item number. Can anyone help? I hope I have
explained things clearly. Thanks.
boutique. The problem I am having is as follows:
I have set up a table that contains all stock details such
as Designer, Style, Sizes, Colours, Costs etc. For each
record entered I need to generate a unique code that is
recognisable when broken down. For example, any items from
the Designer Fornarina will begin with 15; if the item is
a skirt, the second 2 digits would be 13; the last 4
digits represent colour and size. My code should look as
follows: 151399990110. My problem is trying to assign a
4 digit number for the '9999' that goes after style. So,
if i have 2 skirts that are both Fornarina, the same size
and colour, the '9999' is incremented by one so that I
have a unique code. I would also like to be able to start
from 0001 for each designer/style. I have been able to
assign the first four and last four digits to the code
using a form and query but I'm not sure how to increment
the item number. Can anyone help? I hope I have
explained things clearly. Thanks.