>I've got a report and have inserted an excel spreadsheet into it.
Just out of curiosity, why?
An Access report is non-editable, with no user interface allowed, and is intended only to be printed on paper or to a file.
An Excel Spreadsheet, even as an embededed (i.e. not bound) OLE Object, is editable, with a user interface.
It would be far better to make a 'links to a query from another database' into the Access database you're using, then use this query in your report.
Main Topics
Browse All Topics





by: jadedataPosted on 2006-09-15 at 06:45:59ID: 17529349
From M$' support
ation")
Sub XLTest()
Dim XL as Object
Set XL = CreateObject("Excel.Applic
XL.Workbooks.Open "C:\My Documents\ExcelFile.xls"
' If there is more than one macro called TestMacro,
' the module name would be required as in
'
' XL.Run "Module1.TestMacro"
'
' to differentiate which routine is being called.
'
XL.Run "TestMacro"
End Sub