D
Douglas J. Steele
That's the way Autonumbers are: if a number isn't used (because, say, you
decide not to save the record), the number is lost. However, if you're
trying to assign meaning to the value of the Autonumber, you shouldn't.
Autonumbers exist for one purpose only: to provide an (almost guaranteed)
unique value that can be used as a Primary Key. They fill that purpose
whether or not there are gaps. Seldom, if ever, should the value of the
Autonumber field be shown to your users.
--
Doug Steele, Microsoft Access MVP
(No private e-mails, please)
subforms....and whenever a new business comes up I need to enter it into the
database. The autonumbering system generates the next sequential ID number.
again, but then it went to #3925....it's like it won't "re-use" the number
of the deleted record...even though there is no data or record because the
record was deleted.....so it will say record #3923 on the bottom but it will
assign ID#3926 and up. I've deleted it and tried it again a few times and
now it's up to ID#3930. Does anyone know how to fix it so that ID#3923 will
be assigned like it should? I can't very well report: "We have a total of
3923 businesses in the database and ID#3930 is this....doesn't make sense.
Can anyone help me???? Thanks
decide not to save the record), the number is lost. However, if you're
trying to assign meaning to the value of the Autonumber, you shouldn't.
Autonumbers exist for one purpose only: to provide an (almost guaranteed)
unique value that can be used as a Primary Key. They fill that purpose
whether or not there are gaps. Seldom, if ever, should the value of the
Autonumber field be shown to your users.
--
Doug Steele, Microsoft Access MVP
(No private e-mails, please)
do with these businesses. I enter the data in this one form that containsMK said:I have a database which records businesses and the activities our managers
subforms....and whenever a new business comes up I need to enter it into the
database. The autonumbering system generates the next sequential ID number.
instead of ID#3923 it went to #3924....I deleted the record and tried itHowever, something happened recently where it skipped a number....so
again, but then it went to #3925....it's like it won't "re-use" the number
of the deleted record...even though there is no data or record because the
record was deleted.....so it will say record #3923 on the bottom but it will
assign ID#3926 and up. I've deleted it and tried it again a few times and
now it's up to ID#3930. Does anyone know how to fix it so that ID#3923 will
be assigned like it should? I can't very well report: "We have a total of
3923 businesses in the database and ID#3930 is this....doesn't make sense.
Can anyone help me???? Thanks