G
GL
I have a table that has an autonumber field called InventoryID. There is
another field in that table that is also unique, its called LicensePlate#.
The original design needed the License Plate # to be entered, but now the
needs have changed and the license plate # needs to autonumber, incrementing
from the existing data. Ideally I'd like to make this field be my primary
key and have it autonumber, but keep the existing data. Based on what I've
read I don't think this is possible, but #1 want to make sure. You should
also know I could actually delete the InventoryID because there are no
relationships using it.
I also thought about just trying to have it autoincrement the license plate
# upon adding to the table, but the problem is I add to the table from many
places, two of which are append queries coming from other tables and one is a
regular add to the table itself via a form, so I'm not sure how I could do
that.
I did try to set the next InventoryID# to be one more than the current
license plate# using the online how to: Change the starting value of an
AutoNumber field - but couldn't get this to work either! That would probably
be my last choice as then I'd have the license plate # in two seperate
fields, but eventually when the old stuff is gone it would work right, so it
would be ok.
Any help would be SO appreciated!!
another field in that table that is also unique, its called LicensePlate#.
The original design needed the License Plate # to be entered, but now the
needs have changed and the license plate # needs to autonumber, incrementing
from the existing data. Ideally I'd like to make this field be my primary
key and have it autonumber, but keep the existing data. Based on what I've
read I don't think this is possible, but #1 want to make sure. You should
also know I could actually delete the InventoryID because there are no
relationships using it.
I also thought about just trying to have it autoincrement the license plate
# upon adding to the table, but the problem is I add to the table from many
places, two of which are append queries coming from other tables and one is a
regular add to the table itself via a form, so I'm not sure how I could do
that.
I did try to set the next InventoryID# to be one more than the current
license plate# using the online how to: Change the starting value of an
AutoNumber field - but couldn't get this to work either! That would probably
be my last choice as then I'd have the license plate # in two seperate
fields, but eventually when the old stuff is gone it would work right, so it
would be ok.
Any help would be SO appreciated!!