Hi -
In a database I am trying to build I came upon a problem and am stuck trying to figure it out. In the database each product type (ex: toys, clothes, food) has a differnt ID number formatted in a different way. So that
toy 1 has a id number of 4012
toy 2 has a id number of 4013
and so on, with...
food 1 having a id number of 65013
food 2 having a id number of 65014
As you can see different products have a different format for their ID numbers.
I would like users when selecting the "product type" from a drop down to have the "product id number" automatically filled in with the correct format as well as the consecutive manner so that if someone added another toy the id number would automatically read 4014 for toy 3.
Whats the best way to do this?
Thanks
In a database I am trying to build I came upon a problem and am stuck trying to figure it out. In the database each product type (ex: toys, clothes, food) has a differnt ID number formatted in a different way. So that
toy 1 has a id number of 4012
toy 2 has a id number of 4013
and so on, with...
food 1 having a id number of 65013
food 2 having a id number of 65014
As you can see different products have a different format for their ID numbers.
I would like users when selecting the "product type" from a drop down to have the "product id number" automatically filled in with the correct format as well as the consecutive manner so that if someone added another toy the id number would automatically read 4014 for toy 3.
Whats the best way to do this?
Thanks