Hello,
I wonder if anyone can assist with this tiny piece of code.
I have a table that is displayed within a subform.
I want to include a button that exports that table to Excel via the Analyze in Excel option.
I am using the code
Which works fine, but gives me a blank Excel sheet because the table isn't linked to the parent form.
Does anyone know have I can tie the code either to the subform or to the table itself?
I've tried
But it debugs.
Thanks
I wonder if anyone can assist with this tiny piece of code.
I have a table that is displayed within a subform.
I want to include a button that exports that table to Excel via the Analyze in Excel option.
I am using the code
Code:
[/FONT][/COLOR][FONT=Arial][SIZE=3][COLOR=#000080]DoCmd.RunCommand acCmdOutputToExcel[/COLOR][/SIZE][/FONT][COLOR=black][FONT=Verdana]]
Which works fine, but gives me a blank Excel sheet because the table isn't linked to the parent form.
Does anyone know have I can tie the code either to the subform or to the table itself?
I've tried
Code:
[/FONT][/COLOR][FONT=Arial][SIZE=3][COLOR=#000080]DoCmd.RunCommand acCmdOutputToExcel, "PMA_tblPMA_Export", “Table1”[/COLOR][/SIZE][/FONT][COLOR=black][FONT=Verdana] ]
But it debugs.
Thanks