+ Reply to Thread
Results 1 to 3 of 3

Unload Me in user forms is not working

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Unload Me in user forms is not working

    Hi everyone,

    I have the following vab code used for Adding, Editing and Removing employees data thru one user form,

    It is working just fine, but when adding a new employee's data, it adds the data to the database, but refuses to hide the user form after that, while it hides it when editing or removing an employees data.

    Please Login or Register  to view this content.
    I hope that I can find a solution for this problem in this great forum,

    Best Regards,
    Attached Files Attached Files
    Last edited by LoveCandle; 03-13-2012 at 03:32 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Unload Me in user forms is not working

    hi LoveCandle, currently you have CommandButton1_Click code like this:

    Please Login or Register  to view this content.
    which means unloading the form happens only on OptionButton2 being active. Try to move Unload me line after End if like this and the form will be unloaded for either OptionButton1 or OptionButton2:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Unload Me in user forms is not working

    Thank you very much watersev,

    How selly my mistake is!!

    Regards,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1