autonum in tables

S

sally

hi,

i have a table set up in access; when i alphabetize the
second columns, the autonum column is out of order; i was
told to delete the first column, then re-insert it plus
the primary key; when i do that the numbers are in order,
but then the second column is no longer alphabetized; any
suggestions?

thanx,

sally
 
S

sally

jeff,

i am working primarily in forms; but i would like to keep
track of the number of entries; i guess i can get that
from the record number on the forms

thanks for your input

best

sally
 
J

John Vinson

i would like to keep
track of the number of entries; i guess i can get that
from the record number on the forms

DO NOT fall into the trap of thinking of Autonumbers as "record
numbers". THEY AREN'T! There will always be gaps in the number
sequence, and they can even become random.

If you want to keep track of the number of entries, don't use the
Autonumber field; count the entries instead, using either a textbox on
the form footer with a Control Source of

=Count(*)

or using the DCount() function to count the number of records in your
table.
 

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