All,
I have an Access Form that I have embedded an Active X object(Microsoft Office Spreadsheet 11.0) in. I would like to populate it with a query from within the same Access Database how can I do this? I have tried the below but I get the error "2455 You entered an expression that has an invalid reference to the property ControlSource"
Basically when a Button is clicked I want to populate the Active X object(Microsoft Office Spreadsheet 11.0) on the form with data from the query "Report"
I have an Access Form that I have embedded an Active X object(Microsoft Office Spreadsheet 11.0) in. I would like to populate it with a query from within the same Access Database how can I do this? I have tried the below but I get the error "2455 You entered an expression that has an invalid reference to the property ControlSource"
Code:
SQL2 = "SELECT * FROM Report"
Forms!FrmReporting.Spreadsheet8.ControlSource = SQL2
Forms!FrmReporting.Spreadsheet8.Requery
Forms!FrmReporting.Repaint
Basically when a Button is clicked I want to populate the Active X object(Microsoft Office Spreadsheet 11.0) on the form with data from the query "Report"