Hi All
I have a form FrmAuditClientTransactions that populates from a query displaying transaction line items for a given client. I have used a form so that the user can type into text boxes in the footer which then get written to the client table by clicking a button.
I also want the code to save an Excel copy of the form data so I have looked into :
After extensive Googling I’m getting the feeling that the TransferSpreadsheet method works with queries and reports but not with forms – am I right ?
If anyone could find a moment to point me in the right direction of how to save an excel copy of the form using VBA I would be ever so grateful.
Kind Regards
Chris
I have a form FrmAuditClientTransactions that populates from a query displaying transaction line items for a given client. I have used a form so that the user can type into text boxes in the footer which then get written to the client table by clicking a button.
I also want the code to save an Excel copy of the form data so I have looked into :
Code:
[FONT=Arial][SIZE=3]DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, Forms.FrmAuditClientsTransactions.Form.RecordSource, "C:\Sbapps\test.xlsx", True, ""[/SIZE][/FONT]
After extensive Googling I’m getting the feeling that the TransferSpreadsheet method works with queries and reports but not with forms – am I right ?

If anyone could find a moment to point me in the right direction of how to save an excel copy of the form using VBA I would be ever so grateful.
Kind Regards
Chris
Last edited: