+ Reply to Thread
Results 1 to 2 of 2

Going back to a form after a error message

  1. #1
    Registered User
    Join Date
    10-24-2005
    Posts
    55

    Going back to a form after a error message

    Hi

    I am using the code below, to close the form (Which i have made a error message box) if a user does not input text, numbers etc into my main form.

    I found this out looking thru the threads that you have the freedom of creating you own error message box (using a form). But the problem is when i use the code to close the error message box, both forms close, i need the error message to close and keep the main form open.

    Private Sub CommandButton1_Click()
    Unload errormessage3
    Close

    End Sub

    Many thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by raw
    Hi

    I am using the code below, to close the form (Which i have made a error message box) if a user does not input text, numbers etc into my main form.

    I found this out looking thru the threads that you have the freedom of creating you own error message box (using a form). But the problem is when i use the code to close the error message box, both forms close, i need the error message to close and keep the main form open.

    Private Sub CommandButton1_Click()
    Unload errormessage3
    Close

    End Sub

    Many thanks
    Hi,

    not sure but, if you have Unloaded CB3 and then you 'Close' does that not close what's left?

    ---
    Si fractum non sit, noli id reficere.

+ 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