|
[Quoted Text] >From my viewpoint as an Access VBA guy, that should work fine. (But I
don't know anything about .NET.)
How about this as a long shot. Access itself has a property, UserControl, of the Application object. If you automate Access, and make the automated instance visible, then set UserControl=true, that instance will not go away when you set the object variable to nothing. So maybe, .NET (or its forms) has a similar property, which is automagically set True when the instance becomes visible? If so, maybe you could set that property back False before you drop the object reference.
As I say, this is nothing more than a stab in the dark.
(Snipped microsoft.public.access.modulescoding, cos google groups would not post there.)
HTH, TC
|