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