need help in MS query from Excel to access

naren

New Member
Joined
Jun 20, 2009
Messages
5
I have a database from which i import data to my excel sheet through MS Query (MS Access driver *.db) method where the required two (2) parameters are in cell A2 and B1 with output coming in cell B2.

Now i want to replicate this query to all remaining cells i.e. A2:A1000 and B1:BG1., where A2:A1000 are Dates and B1:BG1 are names. Pivot table is not an option as data is larger than Excel's limits.

So, my question is that,
Is there any way where i can push the required two parameters in my query from a cell A2:A1000 and B2:BG2 in a dynamic way through VBA code or something.
or,
how to pass dynamic parameter linked to a referencing cell so that i can drag and copy same query to different cells without creating individual query for each cells.

Database details::
DBQ=C:\MDB-XL trial\access.MDB;DefaultDir=C:\MDB-XL trial;Driver={Microsoft Access Driver (*.mdb, *.accdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeou t=5;SafeTransactions=0;Threads=3;UID=admin;UserCom mitSync=Yes;

Access Query Details:::
SELECT Quotes.qCl
FROM `C:\MDB-XL trial\access.MDB`.Quotes Quotes
WHERE (Quotes.qTicker=?) AND (Quotes.qDate=?)


thanks in advance for your help ......
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
somebody reply.... please.. i am stuck on how to add dynamic reference to the parameters WHERE (Quotes.qTicker=?) AND (Quotes.qDate=?) .....
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,407
Members
448,894
Latest member
spenstar

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