Hi,
I'm running a vba loop to import a list of tables.
Assuming the end user has had a blonde moment & forgotten to untick one of the tables in the appropriate form & so the loop comes to a table which isn't there & so an error.
In some circumstances, it may need to be there, & so stopping the code (which is going to be a huge process) would be good, other times it's just, as above, an oversight, & so it would be good & a more user friendly proceedure to just continue & not to have to re-start!
What I want is to say:
On Error GoTo Err_Handler
Err_Handler:
If MsgBox ("Table " & NAME " not found. Continue?",vbYesNo)=vbNo Then
Exit Sub
Else
Continue from where it left off..... (post error of course)
End If
How do I get it to jump back into the loop?
Thanks
merry_fay
I'm running a vba loop to import a list of tables.
Assuming the end user has had a blonde moment & forgotten to untick one of the tables in the appropriate form & so the loop comes to a table which isn't there & so an error.
In some circumstances, it may need to be there, & so stopping the code (which is going to be a huge process) would be good, other times it's just, as above, an oversight, & so it would be good & a more user friendly proceedure to just continue & not to have to re-start!
What I want is to say:
On Error GoTo Err_Handler
Err_Handler:
If MsgBox ("Table " & NAME " not found. Continue?",vbYesNo)=vbNo Then
Exit Sub
Else
Continue from where it left off..... (post error of course)
End If
How do I get it to jump back into the loop?
Thanks
merry_fay