![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have 2 standalone Access databases with exactly the same table and field structure, call them db1 and db2. We want to transfer (not replicate) data from db1 to db2, primary keys need not be the same between the two dbs. Specifically we want to transfer customer data, which is stored in tblCustomer of db1 into tblCustomer of db2. For simplicity, let's say we want to import into db2 the Name and Address of the customer, exactly as stored in db1, but without having to manually retype the data. The transfer needs to be handled automatically without any manual intervention. It is acceptable to have an intermediate file that is exported from the one db and imported into the other db. One way to do the transfer is with an intermediate text file, but this runs into problems when we transfer non-English characters(for example Greek). The specific case involves the dental software (www.VisualDentist.com) which is designed to work with any language. Occasionally one dentist wants to refer a patient to another dentist and there is a need to transfer the personal data of the patient from one dentist db to another. Both db1 and db2 have a front end mde and a backend mdb. Table tblCustomer is stored in the mdb. We could perhaps make a copy of the backend mdb, delete all tables except tblCustomer and all records in tblCustomer which are not needed. Then have db2 read this mdb. It would be better if the mdb that would store the customer data was an mde and that db2 would read this mde. I have not tried this solution, which I must admit is not very smooth, but I feel that there will be several problems like 1) How do I delete the tables in the copied mdb. 2) Can the copied mdb be compacted to something reasonable for transfer purposes. 3) Can I create an mde based on the copied mdb 4) Can all the above be achieved with automatically with a click of a button Any ideas? Thanks, John |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Ron, the data is on two different, independent PCs. The application is installed on every PC. Each PC has a FE MDE and a BE MDB. The BE MDB on each PC has a table called tblCustomer, where the dentist stores the personal data of the patients (name, address, medical history etc). When a dentist refers a patient to another dentist who uses the same software (www.VisualDentist.com) I want to provide a mechanism where the dentist to whom the patient is referred does not need to manually enter the data. I thought of using an intemediate text file. This works OK except in cases of non-English characters. I then thought of using an MDB as an intemediate file. I thought of copying the BE MDB and deleting all tables except tblCustomer and all records in tblCustomer except the one needed. The problem here is how do I delete the tables in this newly created MDB. Don't I have to attach to the newly created MDB. Thanks,John |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |