|
-
Feb 2nd, 2000, 04:26 AM
#1
Thread Starter
New Member
I'm trying to update a table using Access 97 and VB5 with an identical table in another database that contains changes- changes within the records, addtions & deletions of records. The old table can't be replaced because of existing relationships and database replication is really not an option. If anyone has any ideas please respond. Thanks.
-
Feb 2nd, 2000, 01:18 PM
#2
Guru
If there is no reason to keep the data in the second table, and you don't want to use replication, you can delete all data in the table and then add it in record by record from the other table....
-
Feb 2nd, 2000, 11:05 PM
#3
Thread Starter
New Member
Originally posted by Clunietp:
If there is no reason to keep the data in the second table, and you don't want to use replication, you can delete all data in the table and then add it in record by record from the other table....
The data can't be deleted because that will cause deletions in other tables of the database. The update works fine if no records or added or deleted. I'm running into a problem when the number/order of the records change.
-
Feb 3rd, 2000, 02:51 AM
#4
Frenzied Member
Sounds like you need to have 1) a unique key and 2) two recordsets opened that use the unique key (one in old DB, the other in newdb). Then its a matter of
serial read newdb
read olddb using unique key
if record exists check to see if update is needed
if record doesn't exist, add it
go to serial read until newdb.EOF
-
Feb 3rd, 2000, 12:13 PM
#5
Guru
sorry, I must have misunderstood your situation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|