Selecting Excel drop down to cause Access query using drop downs value

Nade85

New Member
Joined
Sep 13, 2018
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
I currently have an Access DB and Excel workbook that are linked and updating tables and graphs properly when I refresh from Excel. What I would like to happen is user selection from a drop down on the Excel worksheet launches the update of the Excel document via linked Access queries. The Access queries are currently run manually prior to the refresh, and they require a date entry to be completed. I have a drop down now built into my Excel worksheet with a list of years to be able to choose. What needs to happen after selection is something along the lines of the year value is taken from the drop down to be interpreted in Access as a criteria for the queries. Then, once the queries are finished executing in Access, Excel refreshes the tables and graphs as it does currently. I'm still pretty new to Access so I feel this is possible but I'm not 100% on it. And how to exactly go about doing it is obscure to me. I'm fairly certain it will require a macro in Access and Excel that work off each other, but the setup of any additional queries and the code in VBA and SQL are a mystery. Happy to provide existing layouts and coding to assist if anybody has a plan of attack on this.

Thanks.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
It would be easier to do it all in access:
pick the year, run the queries,
then it opens excel with the new data & graph.
(in acces you don't need to know VB, it can be done via macros)

Is this not possible?
 
Upvote 0
It's not impossible. The issue revolve more around who is using the data. I and one other person run basically copies of the same database and run our independent queries and modifications. Creates a back-up kind of scenario. When a new report/query is developed and flushed out properly we will consolidate for a period to have the same setups. The other side is due to the sensitivity of the information housed in the databases, our supervisory elements who require the access to the aggregate data and graphs are not able to have to access to the full Access databases. Nothing stopping them from looking but the shared aspect is the complication here. Since they often get requests for information from outside entities at random times, having the document be updated for them
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,173
Members
449,296
Latest member
tinneytwin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top