|
-
September 22nd, 2004, 08:36 PM
#1
Errorhandler query
Hi All,
I have a small problem
I have a series of actions each opening a file for input. If the file doesnt exist I get an err.Number 53
An error handler line points to an error handler that creates the file.
However, the first set of actions works fine but all errorhandler lines afterwards do not get picked up. Any ideas what i have done wrong? The code stops with an error 53 so its not that there is another error number
On Error GoTo Errorhandler1:
Perform action
Errorhandler1:
If Err.Number = 53 Then Err.Clear: GoTo CreateMyFile1
'next block of actions
On Error GoTo Errorhandler2:
Perform action
Errorhandler2:
If Err.Number = 53 Then Err.Clear: GoTo CreateMyFile2
'next block of actions
On Error GoTo Errorhandler3:
Perform action
Errorhandler3:
If Err.Number = 53 Then Err.Clear: GoTo CreateMyFile3
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
|