English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hey, ok this is what i need help with. with my current code and all im able to open up a form1 and then hit next and go to the next form2, witch is great, but i want to make it so that the form1 closes when i hit Next, anyone know how to do that or the code for it? thanks.

Also, i want to make a error report page, in case a error comes up i want people to be able to email me using a Form, like a little box where they can type there Errors and stuff and it would send it to me.
thanks

2007-07-13 08:39:16 · 2 answers · asked by snorkle 2 in Computers & Internet Programming & Design

2 answers

Do you want to unload the first form or just hide it? If you want to hide it, type the following into the form.load for form2:
form1.hide

If you want to unload form1, type:
unload form1

I have a program that pops up an error box with information. I have a variable that is changed to reflect what part of the code it has gotten to. Just change the variable multiple times in each Sub. Be sure to put On Error GoTo [Name] and put that [Name] at the end of the Sub:

Error:
msgbox "Error text"

2007-07-13 08:46:09 · answer #1 · answered by Yoi_55 7 · 0 0

private sub form_click()
on error go label1
form1.visible=false
form2.visible=true
exit sub
label1:
'your code for error
end sub

2007-07-13 08:57:48 · answer #2 · answered by ishan j 2 · 0 0

fedest.com, questions and answers