Discussion Locked

database in 2 places PROBLEM!

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We use an app using an Access database. Users update from different locations. We just discovered that there are 2 copies of the database in use. Fortunately, only one user is in the copy. There are only 3 field in one table involved. Can anyone tell me how I can update the correct database with info from the copy. I have experience with fox programming but it has been 5-6 years and I have no experience with Access. My position is more support now.

4 replies

by peyison

It all depends on what kind of input the users do in the database. Do they just add records? Do they also update records?

If it's just a matter of adding new records, open the 2nd copy and decide which records in the table you want to keep. Delete the ones you don't (obviously make a backup of it first).

To update the correct database, open it (back this one up, too) and create a link to the table in the 2nd database:

* File -> Get External Data -> Link Tables
* Select the 2nd database
* Select the table

Once the table is linked, create an Append query:

* Create a new query (Design View)
* Add the linked version of the table and press Close
* From the menu, choose Query -> Append Query...
* Select the name of the good table
* In Field: Select the field from the linked table
* In Append To: Select the field from the good table
* Run the query
* Delete the linked table (just deletes the link, does not delete the table from the other database)

If you actually have to update existing records instead of just adding new records, the steps would be similar, but you'd create an Update query.

Hope this helps.

by kermit

Thanks for the response. I used the Update Query and had no problem. The Link Tables is what I was not doing. I am old fashioned and used to a command line.

This discussion is closed to new replies.