Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to paste query into Excel 1

Status
Not open for further replies.

gard0128

Technical User
Jun 18, 2001
38
US
We are currently updating an Excel file from two queries in Access by cutting and pasting the data.

Is there a way to create a macro that would run the query, open the excel file and paste the data into a "data" worksheet?...or is there a better way?

Thanks for any help!!!!
 
better way, goto menubar:

DATA, Import External Data, New Database Query.

Lesser know features of excel, you can actually link and build you queries from XL, filter and auto refresh data, I think this is waht you are lookin for. [yinyang] Tranpkp [pc2]
 
When I attempt to "Finish" in setting up the query, I get the msg: "Too few parameters, expected 1"

Is this because my Access query has a parameter? (the user needs to key in the month criteria when running the query)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top