robbydogg
Registered User.
- Local time
- Today, 08:45
- Joined
- Jul 15, 2008
- Messages
- 56
Hi,
I'm having trouble understandign the issue with my error handling not working.
What i need is the following:
Run code queries 1-10
If there's an error in query 2 to 3, then ignore and go onto query 4 and run to the end
If all is ok - run everything
Finish
sounds simple but i'll be jiggered if i can make it work :banghead:
similar to below
any help would be marvellous
I'm having trouble understandign the issue with my error handling not working.
What i need is the following:
Run code queries 1-10
If there's an error in query 2 to 3, then ignore and go onto query 4 and run to the end
If all is ok - run everything
Finish
sounds simple but i'll be jiggered if i can make it work :banghead:

similar to below
Code:
Private Sub UpdateHandoversOrderBankData_Click()
DoCmd.SetWarnings False
Run Query1
' If the next line faults, run the one below, if nto run them all in sequence
On Error GoTo My_Error_Handler
Run Query2
Run Query3
Exit_Point:
Exit Sub
Run Query4
Run Query5
Run Query6
Run Query7
Run Query8
Run Query9
Run Query10
DoCmd.SetWarnings True
Resume Exit_Point
End Sub
any help would be marvellous

Last edited: