Is there also a DataReport collection similar to the Forms collection for checking on loaded or shown reports, I've had a quick look but I'm thinkng that there isn't.
Thanks a lot, I got that to work. But here is the grabber, what does VB's unload command look like? frm.unload or frm.name.unload do not work. Is there a VB unload command?
There in lies my problem because I cannot do an isloaded ck, I don't know if a form is loaded or not. One option is to close them all (by looping thru the form collection), and then opening the one the client selected.
Just put together the Forms collection from SonofEmidec's post and the Unload Form code from andylec and you get:
Dim f As Form
For Each f In Forms
If f.Name = "Form3" Then Unload f
Next
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.