L
Leighton.d
I have a module that executes when the database opens. It removes all
external references, then adds them in using the Guid's from the users
system. It errors when attempting to remove a broken reference. In this
case, it's the reference for "Microsoft ADO Ext. 2.8 for DLL and Security".
When it attempts to execute the "remove" code below, it displays the error
message "unable to open DLL module". I can manually remove the broken
reference from the "Tools/References" menu, but the program can't. If I
attempt to display the .name or the .isbroken property, I receive the same
error.
What am I missing? Thanks! Doug
For Each Ref In Application.References
If Ref.BuiltIn = False Then
Application.References.Remove Ref
End If
Next Ref
external references, then adds them in using the Guid's from the users
system. It errors when attempting to remove a broken reference. In this
case, it's the reference for "Microsoft ADO Ext. 2.8 for DLL and Security".
When it attempts to execute the "remove" code below, it displays the error
message "unable to open DLL module". I can manually remove the broken
reference from the "Tools/References" menu, but the program can't. If I
attempt to display the .name or the .isbroken property, I receive the same
error.
What am I missing? Thanks! Doug
For Each Ref In Application.References
If Ref.BuiltIn = False Then
Application.References.Remove Ref
End If
Next Ref