J
John B. Smotherman
I have an inventory database application now installed simultaneously on two
networks. (Yeah, I know, but it wasn't my call). There exists a permanent
"air-gap" between the two networks, so the only way I have to synchronize the
back-end tables is to take the audit table (thanks Allen Browne) created on
one network, fold it into the back-end on the other network, then
redistribute the updated (synchronized) back-end to the first network.
I've done monthly archives of the audit table for some time now, exporting
the table to an excel file, then emptying the table. My plan is to use this
..xls file (or convert to .csv if necessary) to update the tables. I should
mention two things: first, the audit table is based on a query that displays
data from five linked tables so the audit table has all the fields from all
five and I need to ensure all five tables are synchronized; second, I've
modified Allen's original audit code slightly such that only fields with a
change are recorded for the "EditFrom" and "EditTo" entries in the table -
all others are null - and there are no "Insert" records in the audit table.
Finally, my questions:
1. Would it be best to update these tables from an excel file or should I
import the file into a single table first?
2. Would VBA be the best route to handle the updates, or should I be looking
at an update query? (I've not yet written an update query, but I'm willing to
learn).
2a. If VBA, does anyone have a code snippet they'd be willing to post for
this?
2b. If a query, can a single update query update multiple tables, or do I
need to create separate queries for each table?
Thanks for wading through my long-winded explanation, and thanks in advance
for any assistance.
networks. (Yeah, I know, but it wasn't my call). There exists a permanent
"air-gap" between the two networks, so the only way I have to synchronize the
back-end tables is to take the audit table (thanks Allen Browne) created on
one network, fold it into the back-end on the other network, then
redistribute the updated (synchronized) back-end to the first network.
I've done monthly archives of the audit table for some time now, exporting
the table to an excel file, then emptying the table. My plan is to use this
..xls file (or convert to .csv if necessary) to update the tables. I should
mention two things: first, the audit table is based on a query that displays
data from five linked tables so the audit table has all the fields from all
five and I need to ensure all five tables are synchronized; second, I've
modified Allen's original audit code slightly such that only fields with a
change are recorded for the "EditFrom" and "EditTo" entries in the table -
all others are null - and there are no "Insert" records in the audit table.
Finally, my questions:
1. Would it be best to update these tables from an excel file or should I
import the file into a single table first?
2. Would VBA be the best route to handle the updates, or should I be looking
at an update query? (I've not yet written an update query, but I'm willing to
learn).
2a. If VBA, does anyone have a code snippet they'd be willing to post for
this?
2b. If a query, can a single update query update multiple tables, or do I
need to create separate queries for each table?
Thanks for wading through my long-winded explanation, and thanks in advance
for any assistance.