I have the following Code:
On Error GoTo Err_Handler
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("select * from tSample where sftshift='K'")
MsgBox (rst!wodref)
Exit sub
Err_Handler:
MsgBox ("Error")
A "no current Record" error is deliberatltely generated
The msgbox after the Err_Handler does not appear and the code stops at the msgbox
Does not appear to be seeing the On Error Statement. This suddenly seems to be happening on all previously written databases
On Error GoTo Err_Handler
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("select * from tSample where sftshift='K'")
MsgBox (rst!wodref)
Exit sub
Err_Handler:
MsgBox ("Error")
A "no current Record" error is deliberatltely generated
The msgbox after the Err_Handler does not appear and the code stops at the msgbox
Does not appear to be seeing the On Error Statement. This suddenly seems to be happening on all previously written databases