Excel VBA Querying Access DB - TechRepublic
General discussion
November 27, 2001 at 06:21 AM
kolsson

Excel VBA Querying Access DB

by kolsson . Updated 24 years, 7 months ago

My client has an MS Access database and wants to import 87 fields of data from it into an Excel worksheet. The only filter is the cycle number (an integer). Access field names are long so it needs multiple queries to get it all.

The twist: We presume we have dumb users, so we will provide each user with a workbook and when they open the workbook there should be only a button that brings up an input dialog box (for cycle number) so zero user training is needed. (Workbook is read only so theyare forced to do a SaveAs.) I have the VBA working fine for a single query but how can I code it to enter the cycle number just once for the multiple queries needed to collect all the data?

This discussion is locked

All Comments