Forum menu
microsoft Excel to ...
 

[Closed] microsoft Excel to Access queries

 mrmo
Posts: 10720
Free Member
Topic starter
 
[#1338734]

could anyone provide an explanation of how to run a query in Excel of an Access Database.

I have come across the SQL.Request() formula and think it is the one i need but am a little unsure of the structure of the request


 
Posted : 18/02/2010 4:12 pm
Posts: 145
Free Member
 

Data > Import External Data > New Database query, find msaccess and then browse for your file.


 
Posted : 18/02/2010 4:19 pm
Posts: 6906
Full Member
 

You can write the query using MSQuery (look in the Program Files directory), save the query, then import it as above. It's too involved to explain in a post but really useful once you understand it. I've got spreadsheets interacting with Oracle and SQL databases and web pages using the functionality.


 
Posted : 18/02/2010 8:51 pm
Posts: 79
Free Member
 

If I want to bring back data into Excel using an Access query I'd use djglover's suggestion. To build a query directly in Excel from Access or SQLServer I do the same as stumpyjon ( which, as stumpyjon says, is a bit involved to explain here).


 
Posted : 18/02/2010 9:48 pm