PC Review


Reply
 
 
Jac Tremblay
Guest
Posts: n/a
 
      1st May 2010
Hi,
I have a form loaded as Modal and on the Cancel Button event, I want it to
close (or unload).

Private Sub cmdAnnuler_Click()
MsgBox "me.Name = " & Me.Name ' To make sure it is the right one.
Unload Me
End Sub
I get an error:
Run-time error '361':
Can't load or unload this object

What is the problem?
Thanks
--
Jac Tremblay
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cancel unload event on mainform from subform unload event??? clawdogs@gmail.com Microsoft Access Form Coding 1 28th Apr 2009 04:10 PM
cancel unload event on mainform from subform unload event??? KLZA Microsoft Access Forms 0 27th Apr 2009 09:18 PM
unload assembly - AppDomain.Unload does not work as expected =?Utf-8?B?RGllcmsgRHJvdGg=?= Microsoft Dot NET Framework 2 4th Apr 2004 04:06 PM
Windows Unload Problem =?Utf-8?B?T3NjYXI=?= Windows XP Help 0 24th Mar 2004 10:51 PM
Userenv 1517 (Cannot Unload Registry) Thomas E Lackey Windows XP Help 0 24th Oct 2003 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.