Hi am working with Access 2010. I am want to remove a reference from the library with VBA
I am using the below function
Public Sub RemoveReference(strReferenceName As String)
Access.References.Remove Access.References(strReferenceName)
End Sub
Calling from an Event Procedure
Call RemoveReference("Microsoft Outlook 14.0 Object Library")
I have also tried RemoveReference("C:\Program Files (x86)\Microsoft Office\Office14\MSOUTL.OLB") but keep getting Runtime Error9 Subscripted out of Range
What I am missing
Thanks
L
I am using the below function
Public Sub RemoveReference(strReferenceName As String)
Access.References.Remove Access.References(strReferenceName)
End Sub
Calling from an Event Procedure
Call RemoveReference("Microsoft Outlook 14.0 Object Library")
I have also tried RemoveReference("C:\Program Files (x86)\Microsoft Office\Office14\MSOUTL.OLB") but keep getting Runtime Error9 Subscripted out of Range
What I am missing
Thanks
L