B
Bob
Hi I have lots of code without any error trapping what is the correct way to
trap errors in for example the following code? Also are there any
programmes out there that can put the code in for me?
Private Sub txtExcessApply_AfterUpdate()
If Me.EMExcessPayer = "Employer" Then
Me.EmployerExcess = [ExcessDue] * [txtExcessApply]
Else
If Me.EMExcessPayer = "Driver" Then
Me.DriverExcess = [ExcessDue] * [txtExcessApply]
End If
End If
Me.txtExcessApply.SetFocus
End Sub
Thanks Bob
trap errors in for example the following code? Also are there any
programmes out there that can put the code in for me?
Private Sub txtExcessApply_AfterUpdate()
If Me.EMExcessPayer = "Employer" Then
Me.EmployerExcess = [ExcessDue] * [txtExcessApply]
Else
If Me.EMExcessPayer = "Driver" Then
Me.DriverExcess = [ExcessDue] * [txtExcessApply]
End If
End If
Me.txtExcessApply.SetFocus
End Sub
Thanks Bob