G
Guest
I have just inherited a Access97 database with lots and lots of tables and
relationships and forms and queries and well you get the idea. They want to
step away from the 97 and goto to 2000 (for the life of me don't ask why, I
have been asking the same thing, why not go to 2003 since you are doing this
but heck I am not in charge). Anyway, before I got here, they contracted an
outside company to convert the database structure for them to 2000. They did
that but they either missed this little ditty or franckly didn't care.
One of the tables has a field called ClientID which is generated using
Autonumber and is a primary key. That table has a one to many relationship
with two other tables using the ClientID where its a Long Integer number in
the other two and a many to many relationship with more than a dozen tables
with other fields being used to link them. Integrity is enforced and here is
where the problem lies.
When you "paste" the data from the linked or copied tables (whichever you do
it has the same problem) it starts the autonumber and sequentially and
perfectly generates the new numbers. here is the problem though, the original
sequence is not a perfect continuous generation. 1,2,6,9,25,46,47,48 you get
the idea and now it becomes 1,2,3,4,5,6,7,8. As you can see the problem, this
causes the integrity to fail in other tables that rely on this table and
therefore are "missing" their link to a data that is necessary or previously
recorded.
Here is my question now that you have the basic history behind the problem,
how in the world can I fix this problem? PLEASE! I mean I have tried
converting the autonumber field to integer which we all know can't happen but
was worth a shot. Breaking the relationships and manually fixing this is out
of the question because the whole database was "ingeniously" designed
(sarcastic) to fail if you break even one relationship to this table. So I am
up S* creek without a paddle here and running circles expected to fix this
mess and out of options. I am asking anyone who can take the time and knows
really well how to do this to help me please.
I have been using Access for YEARS and I would be considered somewhat of an
expert and I am stuck! I am hoping someone out there has a trick or more
experience than me to help me out. I am on a deadline too which sucks, so
anything soon would be greatly appreciated and will help your good karma for
years to come.
relationships and forms and queries and well you get the idea. They want to
step away from the 97 and goto to 2000 (for the life of me don't ask why, I
have been asking the same thing, why not go to 2003 since you are doing this
but heck I am not in charge). Anyway, before I got here, they contracted an
outside company to convert the database structure for them to 2000. They did
that but they either missed this little ditty or franckly didn't care.
One of the tables has a field called ClientID which is generated using
Autonumber and is a primary key. That table has a one to many relationship
with two other tables using the ClientID where its a Long Integer number in
the other two and a many to many relationship with more than a dozen tables
with other fields being used to link them. Integrity is enforced and here is
where the problem lies.
When you "paste" the data from the linked or copied tables (whichever you do
it has the same problem) it starts the autonumber and sequentially and
perfectly generates the new numbers. here is the problem though, the original
sequence is not a perfect continuous generation. 1,2,6,9,25,46,47,48 you get
the idea and now it becomes 1,2,3,4,5,6,7,8. As you can see the problem, this
causes the integrity to fail in other tables that rely on this table and
therefore are "missing" their link to a data that is necessary or previously
recorded.
Here is my question now that you have the basic history behind the problem,
how in the world can I fix this problem? PLEASE! I mean I have tried
converting the autonumber field to integer which we all know can't happen but
was worth a shot. Breaking the relationships and manually fixing this is out
of the question because the whole database was "ingeniously" designed
(sarcastic) to fail if you break even one relationship to this table. So I am
up S* creek without a paddle here and running circles expected to fix this
mess and out of options. I am asking anyone who can take the time and knows
really well how to do this to help me please.
I have been using Access for YEARS and I would be considered somewhat of an
expert and I am stuck! I am hoping someone out there has a trick or more
experience than me to help me out. I am on a deadline too which sucks, so
anything soon would be greatly appreciated and will help your good karma for
years to come.