K
KarenF
Hi,
A colleague of mine has several tables in her database and it seems to me
that an autonumber field would help her relate her data rather than having 2
primary keys in several tables and linking them (she is linking the tables as
a 1:1 on both fields in each table). The linked tables may not include
every record that the main table has. This is the fun part. The records are
sorted in date order - this is the order in which they were entered into the
tables. It is the Date and Event Name fields that are her primary keys, and
she's linking them both to their foreign keys in the other tables. When I add
an autonumber field to any of the tables, and I use incrementing values, the
sort order of the table remains the same (as expected), but, the
Autonumbering seems to start half way down the table, go to the end record
and then continue from the first record to the half way point it started
with. Am I not understanding autonumbering correctly? I know that each
record will be given a unique number which will never be duplicated (even if
the record with that number is deleted). Am I wrong to assume that Access
would increment the numbers starting with 1 as the first record etc.? My
colleague and I have tried this many times and Access always numbers the
records in the same way.
Does anyone have any ideas? Have I just discovered something about
Autonumbering that I didn't know before (and I'm not sure now why it's doing
it)?
I think this is a different question really, but my colleague is
experiencing some oddities with her database. Could this be because of any
of the table relationships?
Thanks for your time.
Karen
A colleague of mine has several tables in her database and it seems to me
that an autonumber field would help her relate her data rather than having 2
primary keys in several tables and linking them (she is linking the tables as
a 1:1 on both fields in each table). The linked tables may not include
every record that the main table has. This is the fun part. The records are
sorted in date order - this is the order in which they were entered into the
tables. It is the Date and Event Name fields that are her primary keys, and
she's linking them both to their foreign keys in the other tables. When I add
an autonumber field to any of the tables, and I use incrementing values, the
sort order of the table remains the same (as expected), but, the
Autonumbering seems to start half way down the table, go to the end record
and then continue from the first record to the half way point it started
with. Am I not understanding autonumbering correctly? I know that each
record will be given a unique number which will never be duplicated (even if
the record with that number is deleted). Am I wrong to assume that Access
would increment the numbers starting with 1 as the first record etc.? My
colleague and I have tried this many times and Access always numbers the
records in the same way.
Does anyone have any ideas? Have I just discovered something about
Autonumbering that I didn't know before (and I'm not sure now why it's doing
it)?
I think this is a different question really, but my colleague is
experiencing some oddities with her database. Could this be because of any
of the table relationships?
Thanks for your time.
Karen