Dear All
My database is currently in use in three offices and each office has its own discrete copy. I now wish to combine the three databases so that all the offices have access to the same data - and in order to do so I must append all of the table data together, and one particular (the most important) table is causing me grief.
The problem is that there are gaps in the autonumbering on the primary key where records have been deleted, and the primary key for each record is referenced elsewhere - for example in a "previous record ID for this customer" field in a subsequent record in the same table (which is probably bad database practice but it's about 5000 records too late to reconsider that idea). Appending the table together therefore isn't working because Access removes the gaps in the autonumbering when it appends and then the "previous record ID for this customer" references the wrong record.
By exporting to Excel and appending the tables there I have managed to get the table precisely the way I want it (with gaps in the primary key sequence, and all of the related references matching up), but when I attempt to import it back into Access I can't set my carefully edited "primary key" field back to autonumber because there's data already in it.
Am I on a hiding to nothing here? Clearly this isn't an optimal database design, but this isn't my day job and I've only got until Monday to pull this all together...
My database is currently in use in three offices and each office has its own discrete copy. I now wish to combine the three databases so that all the offices have access to the same data - and in order to do so I must append all of the table data together, and one particular (the most important) table is causing me grief.
The problem is that there are gaps in the autonumbering on the primary key where records have been deleted, and the primary key for each record is referenced elsewhere - for example in a "previous record ID for this customer" field in a subsequent record in the same table (which is probably bad database practice but it's about 5000 records too late to reconsider that idea). Appending the table together therefore isn't working because Access removes the gaps in the autonumbering when it appends and then the "previous record ID for this customer" references the wrong record.
By exporting to Excel and appending the tables there I have managed to get the table precisely the way I want it (with gaps in the primary key sequence, and all of the related references matching up), but when I attempt to import it back into Access I can't set my carefully edited "primary key" field back to autonumber because there's data already in it.
Am I on a hiding to nothing here? Clearly this isn't an optimal database design, but this isn't my day job and I've only got until Monday to pull this all together...