Rachel Garrett
New Member
- Joined
- May 13, 2008
- Messages
- 11
Greetings,
I have to update a collection of a couple dozen Excel scorecards that pull their data from Access. Each scorecard has three Data Connections to the database; the database contains three different queries constructed to supply their piece of the data.
One thing I discovered while playing around is that when I set up a data connection by telling Excel to look at an Access query, it just copies in the SQL -- it doesn't actually point to the query. So instead of just being able to tweak three queries in the database in order to make a change, I will have to manhandle about 90 data connections.
The operation I have to do on each connection is identical:
1) Stop returning fields A, B, and C when the connection refreshes.
2) Add fields X, Y, and Z in their place.
Does anyone have suggestions on a good approach? I was thinking maybe VBA could edit the connection strings for me. (I don't consider VBA part of my skillset, so if you used advanced concepts, example code would be extremely helpful.)
Thank you very much for the help.
--Rachel
I have to update a collection of a couple dozen Excel scorecards that pull their data from Access. Each scorecard has three Data Connections to the database; the database contains three different queries constructed to supply their piece of the data.
One thing I discovered while playing around is that when I set up a data connection by telling Excel to look at an Access query, it just copies in the SQL -- it doesn't actually point to the query. So instead of just being able to tweak three queries in the database in order to make a change, I will have to manhandle about 90 data connections.
The operation I have to do on each connection is identical:
1) Stop returning fields A, B, and C when the connection refreshes.
2) Add fields X, Y, and Z in their place.
Does anyone have suggestions on a good approach? I was thinking maybe VBA could edit the connection strings for me. (I don't consider VBA part of my skillset, so if you used advanced concepts, example code would be extremely helpful.)
Thank you very much for the help.
--Rachel