My code, running in MS Access 2010:
Sub test()
Dim xl as Object
set xl = CreateObject("Excel.Application")
End Sub
For whatever reason I am getting the error
ActiveX component can't create object.
I don't know why -- I go to Tools -> References and I even add the Microsoft Excel library, but still nothing.