|
-
Oct 20th, 2007, 10:38 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Error Clear
Hi All
I have a two forms:
Form1 and Form2. here is a sample code:
in form2:
Code:
Private Sub Form_Load()
On Error GoTo ErrorLable
'code...............
ExitSub:
Exit Sub
ErrorLable:
err.clear
GoTo ExitSub:
End Sub
in form1:
form2.hide
code.....
form2.hide
if an error occurs in Form2 and want to call it again from form1, it will skip over it and I cannot call form2 again. what can I do to call form2 again even if it had an Error.
thanks
Wajdi
-
Oct 21st, 2007, 12:05 AM
#2
Thread Starter
Hyperactive Member
-
Oct 21st, 2007, 02:28 AM
#3
Re: Error Clear
if it is fixed, please go to "Thread Tools" and "Mark Thread Resolved".
-
Oct 21st, 2007, 02:55 AM
#4
Re: Error Clear
Also, please tell us what you did to resolve your issue.
It may help someone else.
-
Oct 22nd, 2007, 11:07 AM
#5
Thread Starter
Hyperactive Member
Re: [RESOLVED] Error Clear
The fix was I was using a form instead of a module, using a module fix the issue,
-
Oct 22nd, 2007, 11:14 AM
#6
Re: [RESOLVED] Error Clear
Thank you wajdi, for posting back!
-
Oct 22nd, 2007, 11:16 AM
#7
Re: [RESOLVED] Error Clear
Thanks Wajdi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|