Here is a brief summary of what I am trying to achieve:
My database is huge (many tables over 50k records) and I would like to spin off a select set of data. I want to spin off 2008 data, and in 3 months spin off 2009 data -- adding it to the 2008 spin off.
The primary keys in my tables are incremental autonumber. Now, the spin off of 2008 data is relatively easy - because the primary keys retain their relationships. When I go to add 2009 data to that set of tables, the ms access will want to provide new autonumber values - which will disrupt all the cascading relationships that depend on that unique key.
So, before I spin off the 2008 data, i want to change the key from autonumber to simply long integer - but still have it be the unique key and all the relationships to stay intact. Then I can move the data from one database to another on an annual basis.
So, I am happy to provide the snippet of code that so far has been unsuccessful for various reasons - but I first want to know if what I am trying to achieve is realistic and doable.
I greatly appreciate any thoughts on my dilemma!
thanks,
hrdavidson
My database is huge (many tables over 50k records) and I would like to spin off a select set of data. I want to spin off 2008 data, and in 3 months spin off 2009 data -- adding it to the 2008 spin off.
The primary keys in my tables are incremental autonumber. Now, the spin off of 2008 data is relatively easy - because the primary keys retain their relationships. When I go to add 2009 data to that set of tables, the ms access will want to provide new autonumber values - which will disrupt all the cascading relationships that depend on that unique key.
So, before I spin off the 2008 data, i want to change the key from autonumber to simply long integer - but still have it be the unique key and all the relationships to stay intact. Then I can move the data from one database to another on an annual basis.
So, I am happy to provide the snippet of code that so far has been unsuccessful for various reasons - but I first want to know if what I am trying to achieve is realistic and doable.
I greatly appreciate any thoughts on my dilemma!
thanks,
hrdavidson
Comment