Thanks Doug. You say "can you not just replace the development
database with the production one". Did I imply that I was replacing the
development database with the production database, if so my mistake. What
I
think I can do and want to do is replace the data in the dev db with the
data in the production db. So as I am working in the dev db I have
current
data. I don't know of any reason that I shouldn't or couldn't do that, is
there one? Please elaborate.
=============================
You can refer to tables in other databases in queries without having to
link
the tables.
For instance, you could use
INSERT INTO MyTable (ID, Field1, Field2, Field3)
SELECT ID, Field1, Field2, Field3
FROM [;DATABASE=E:\Folder\File.mdb].MyTable
WHERE ID NOT IN (SELECT DISTINCT ID FROM MyTable)
You might also find my November, 2003 "Access Answers" column in Pinnacle
Publication's "Smart Access" to be relevant to what you're trying to do. I
show how to write a single query that will insert new rows and update
existing ones. You can download the column (and sample database) for free
from
http://www.accessmvp.com/DJSteele/SmartAccess.html
That having been said, though, can you not just replace the development
database with the production one?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
MVP - WannaB said:
Hello, I have 2 nearly identical MDB files, one in production and the
copy
in dev. I would like to automate the process of pulling fresh data into
the
dev db and the only thing I can think of is to copy the Production db to
the
same folder as the dev db, create links to each table, and then build
update
and append queries to pull the data into the dev from the production. My
question is, How can this be done without all those extra objects, just
using VBA ??
Thank you.