Can I import the results of an Access Query into Excel?
Current situation:
I have a fairly complex DAO Microsoft Access database which I maintain for my club, containing a few thousand records
I have to hand-off membership information on a monthly basis to a dozen committee members.
They do not use Access, but all use Excel.
I therefore use Access to build an Excel file, which I then email off to them ... but only after spending a lot of time cleaning it up and enhancing it.
There are 5 different spreadsheets which need to be produced.
.... and that entails an awful lot of work each month ... almost as much as maintaining the database!
Ideal situation:
I build an Excel spreadsheet with all of the VBA / Macros in it to do the enhancements etc ... (that shouldn't be a problem if I read the books and set my mind to it).
What I would like to know before embarking on this trail is whether it is possible, (within the Excel VBA/Macros), to do the following.
Open the Access database
run a query
pull the result of the query into the body of the Excel spreadsheet .... so that the Excel VBA can work on it.
I am using Office 2003 under Windows XP
Is this asking too much?
If it is possible, can you give me a clue as to the VBA code required, or at least, point me to a place where I can find such code examples.
Bookmarks