|
-
Sep 19th, 2000, 07:00 AM
#1
Thread Starter
Lively Member
How can I trigger an unload event of a form, when I change a combobox?
Thanks
-
Sep 19th, 2000, 07:05 AM
#2
In the combo1_click or change events, put this:
-
Sep 19th, 2000, 07:10 AM
#3
Thread Starter
Lively Member
This doesn't work
This error is create:
Unload in the change/click or dropdown event of the
combobox doesn 't work. This is not allowed.
Isn't there an other solution?
-
Sep 19th, 2000, 08:08 AM
#4
Frenzied Member
maybe this isn't the most elegant way but:
Code:
Private Sub Combo1_click()
'Call our home-made function to Unload the form
Call Unloadme
End Sub
Private Sub Unloadme()
'Really Unload me now :)
Unload Me
End Sub
Hope it worked
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 19th, 2000, 01:39 PM
#5
You should also set the form to nothing.
Code:
Unload Me
Set Form1 = Nothing
End
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|