J
jimt
I'm writing a module to refresh the data in all the tables in the current
database from the same named tables in a "master" database.
The table names to be refreshed are first written to a table in the current
database. The module reads the table via a do-loop. The next step executes a
SQL statement that deletes the records form the named table in the current
DB. The next step is to retrieve the records from the same named table in
another ("master") database and INSERT INTO the table in the current
database. The code currently reads:
apdStr = "INSERT INTO " & tbl_name & _
" SELECT * " & _
" FROM " & master_db & "; "
DoCmd.RunSQL apdStr
Example tbl_name="owner_name" (the same name in both current/receiving
database and in the master database)
master_db="C:\assessment\assessments.mdb"
What should the "From" statement read to get all the owner_name records from
the assessment.mdb and insert them into the owner_name table of the current
(child) database.
Thanks
Jim T.
database from the same named tables in a "master" database.
The table names to be refreshed are first written to a table in the current
database. The module reads the table via a do-loop. The next step executes a
SQL statement that deletes the records form the named table in the current
DB. The next step is to retrieve the records from the same named table in
another ("master") database and INSERT INTO the table in the current
database. The code currently reads:
apdStr = "INSERT INTO " & tbl_name & _
" SELECT * " & _
" FROM " & master_db & "; "
DoCmd.RunSQL apdStr
Example tbl_name="owner_name" (the same name in both current/receiving
database and in the master database)
master_db="C:\assessment\assessments.mdb"
What should the "From" statement read to get all the owner_name records from
the assessment.mdb and insert them into the owner_name table of the current
(child) database.
Thanks
Jim T.