Compacting and Repairing Access

G

Guest

Is thea workaround to comapcting a repairing a database so that you do not
lose a Auto number field. My database appends excel data to a temporary data
table - which in turn gives each entry a unique auto-number. After which a
macro runs to clear the entries ready for the next 'upload'What i find is
that after a while the data tables become bloated and i need to repair and
compact. After this operation the auto numbering sequence in the temp table
reverts back to 1.
 
J

Joseph Meehan

Impy said:
Is thea workaround to comapcting a repairing a database so that you
do not lose a Auto number field. My database appends excel data to a
temporary data table - which in turn gives each entry a unique
auto-number. After which a macro runs to clear the entries ready for
the next 'upload'What i find is that after a while the data tables
become bloated and i need to repair and compact. After this
operation the auto numbering sequence in the temp table reverts back
to 1.

I suggest you may not want to use Autonumber for that use. Autonumbers are
designed to provide unique numbers. It in not designed to provide numbers
in order and for a number of reasons may not do so. As a result using them
in any application where the user sees the numbers is likely to end up with
confusion.

There are other ways of providing the numbers you want depending on the
particual application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top