ChipperT
Banned in 13 Countries
- Local time
- Today, 03:49
- Joined
- Jun 1, 2010
- Messages
- 347
This is actually two questions but they are related. I am fairly new to Access - well, coming back. I did a bit of work in Access 97. Most of my development experience has been in SQL Server. There I am used to generating SQL code for several reasons. First, it is easy to document a db that way, second, it is a great disaster-recovery, re-implementation tool, and third, it is a good way to move dbs initally. I will sometimes even do it for an intial load of data, dropping an old database, re-creating the new structure, and loading the data into the new structure. Now all that said:
1. How would I generate SQL code for tables in an Access 2007 db (or even for the entire DB)?
2. Assuming I could do that, could I execute the SQL Code (maybe using DoCMD.SQL) within VBA?
I am thinking this might be a good way to update remote stand-alone sites when necessary.
Thank you for your help.
1. How would I generate SQL code for tables in an Access 2007 db (or even for the entire DB)?
2. Assuming I could do that, could I execute the SQL Code (maybe using DoCMD.SQL) within VBA?
I am thinking this might be a good way to update remote stand-alone sites when necessary.
Thank you for your help.