PLEASE HELP with exporting data to Excel

S

Shadow

Is there anyway to export/output the data of a from to a specified sheet of
a specified excel file?

This is my situation:
I have a form based on a query that shows the result of a search. I need to
export this search result to the end of a list in sheetOrders of Orders.xls

DoCmd.OutputTo acOutputForm, "Orders", _
acFormatXLS, "Orders.xls", True

the above code output the data to a new book. How can I change this code to
output the data to the end of a list in sheetOrders sheet of an existing
Orders.xls book?


I appreciate any kind of help.
 
P

PC Datasheet

Link to SheetOrders in Orders.xls. This will create an Access table. Create an
append query based on your form's query and append the data to the Access table.
Through the link, this will also add the search result to the end of a list in
sheetOrders of Orders.xls.
 
S

Shadow

thanks for the hint. Isn't there any solution to do it through visual basic?

I appreciate your help.



shadow
 
P

PC Datasheet

DoCmd.OpenQuery "NameOfYourAppendQuery"


Shadow said:
thanks for the hint. Isn't there any solution to do it through visual basic?

I appreciate your help.



shadow
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top