Subform export to Excel

johankotze

Registered User.
Local time
Today, 04:04
Joined
Jul 3, 2016
Messages
54
I have subform that I want to export to excel, no filtering.
Form name: Commercial Renewal
Subform: ComRenewalDetails subform
 
not enough information to provide a more relevant answer but use transferspreadsheet to transfer the subforms recordsource
 
Hi CJ
The subform [ComRenewalDetails subform] is in Datasheet view. I have a client that need that information in Excel spreadsheet format. I have no glue on how to do that. I thought about a button command that will export the info to a excel spreadsheet.
 

Attachments

here is a demo.
copy all Modules to your db and see the Code behind the Export button.
 

Attachments

Forms don't store data. Tables store data. If you are using a query as the RecordSource of the subform, export that using the TransferSpreadsheet method. If you are using a table, export that. If you need criteria, the best solution is a query.
 
This code by BTAB developments

Allows you to format your query generated data, exported to excel.

There are several examples of how to use this code on my website:-

 

Users who are viewing this thread

Back
Top Bottom