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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exporting subform data to excel template

Status
Not open for further replies.

toffa

Programmer
Aug 24, 2004
77
AU
I have a main form and a subform that i have working nearly the way i want, for reporting purposes i need to transfer the details to of the filtered subform to excel.

the main form is jobs
the subform name is run

feilds in subform are

id ref date reason from to km time beg end

In the excel sheet the feilds are as follows

date reason from to km time beg end

saying this i need some of the data from the main form to transfer aslwell including cl id and clnumb

any help would be appreciated

Chris
 
You may create a parametized query and export it with the DoCmd.TransferSpreadsheet method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
i would like to create a button that allows the user to click and it would export the feilds from the current record and the subform.
chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top