[AccessD] Removing a missing reference

MartyConnelly martyconnelly at shaw.ca
Tue Aug 8 13:05:27 CDT 2006


Should be  References.Remove refCurr.name
needs a path string to reference not an object

Rocky Smolin - Beach Access Software wrote:

>Dear List:
>
>Still struggling with this references thing.  It seem the easiest thing 
>to do would be to remove the missing reference in the Open event of the 
>opening form in the event the app is loaded onto a machine which doesn't 
>have the library.  However, all the code that I've seen to remove 
>missing references fail.  Code like:
>
>Dim refCurr As Reference
>    For Each refCurr In References
>        If refCurr.IsBroken Then
>            References.Remove refCurr
>        End If
>    Next
>
>Seems straightforward but when it comes to the missing reference it 
>errors out on the .Remove line because it doesn't have a name.  So.  How 
>do you remove a missing reference when the application the reference is 
>referring to doesn't exist?
>
>MTIA
>
>Rocky
>
>  
>

-- 
Marty Connelly
Victoria, B.C.
Canada




More information about the AccessD mailing list