Querying data from Access question

Mr930

Well-known Member
Joined
Aug 31, 2006
Messages
585
I wish to execute a query saved in Access and have it dump to the same range on my spreadsheet each time I run it. The first time I run it no problem, it creates a table. But the next time it will not let me overwrite the existing table. Each time it runs, the number of records returned might be different. How would I set this up to keep writing to the same range?

thanks
Fred Emmerich
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
You did not say which version of Office is being used so I can only give a general description.
I would link to the Query from Excel - something like Data | Get External Data | From Access.
You would need to check the properties where you can say whether or not to refresh on opening the workbook, refresh in the background and (I find this important) the 'mode' of the data link - this tends to default to "mode=Share Deny Write" and I change it to "mode=Read".
In Office 2007/2010 the data will be formatted as a table in Excel - I believe it would be a 'List' in Excel 2003.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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