I have a frontend A97 database that is automatically distributed to users pc's there is a refernce to a DLL that is only installed on some machines. to avoid putting the DLL onto all the machines I tried to un-reference it when it is not present. But all I get is an error:
runtime error '48' - Error in loading DLL
This is generated by ref.IsBroken - I need the isbroken to return true but it does not!!
Code:
Sub CheckReferences()
Dim ref As Reference
For Each ref In References
If ref.IsBroken Then
References.Remove ref
End If
Next ref
End Sub
Any comments suggestions appreciated..
Mike
runtime error '48' - Error in loading DLL
This is generated by ref.IsBroken - I need the isbroken to return true but it does not!!
Code:
Sub CheckReferences()
Dim ref As Reference
For Each ref In References
If ref.IsBroken Then
References.Remove ref
End If
Next ref
End Sub
Any comments suggestions appreciated..
Mike