I entered incrrect data into a record and nned to delete the data. Everything
I have tried has not worked. The Package ID number and the Customer ID number
are no longer corredt. Is there a way to straighten them out? I am taking a
class in Access and it is mostly "on your own" learning.
If these ID numbers are Autonumbers, then there WILL be a gap in the
numbering if you delete a record. This isn't an error. Autonumbers
have one purpose, and one purpose only - to provide a unique key.
Deleted numbers will not be reused, and existing numbers cannot be
edited.
If you can't tolerate gaps in the numbering scheme, then you cannot
use Autonumbers, and must design your own numbering scheme.
One consideration: Suppose a few years down the road you have 31227
records in the Package table. You look in the table and realize that
records 1 and 2 were left over from testing and don't correspond to
any real package, and you want to delete them.
Do you REALLY want to renumber 31225 records, and all their associated
records? Do you want to renumber them on all the pieces of paper where
they've been printed or hand-written? Do you want to notify all your
customers that their PackageID's all need to be changed? No, of course
not! Just treat the ID's as they're intended to be treated:
meaningless unique values. It's best not to expose them to human view
at all, but just to use them as internal, behind-the-scenes linking
values.
John W. Vinson[MVP]