G
GGG
The following code does not work in the not in list event.
on error goto 1
Response = acDataErrContinue
If MsgBox("Did you want to add a new record? If so, you will need to
click the" _
& "New Record (ctl+E together) to start entering in the info",
vbYesNo) = vbOK Then
Response = acDataErrAdded
ENR.SetFocus
End If
Exit Sub
1:
MsgBox Err.Description & "w/" & Err.Number & " is the problem."
Response = acDataErrContinue
End Sub
What happens is that the msgbox will come across like it should, then,
I"ll say yes.
It never gets to the next command, access will just repeat the msgbox
question again. and if I answer, "no", the canned error shows up (the
microsoft not in list error)
Do I need some sort of warnings off process in order for the next
command, ENR.setfocus to fire?
Dobs
on error goto 1
Response = acDataErrContinue
If MsgBox("Did you want to add a new record? If so, you will need to
click the" _
& "New Record (ctl+E together) to start entering in the info",
vbYesNo) = vbOK Then
Response = acDataErrAdded
ENR.SetFocus
End If
Exit Sub
1:
MsgBox Err.Description & "w/" & Err.Number & " is the problem."
Response = acDataErrContinue
End Sub
What happens is that the msgbox will come across like it should, then,
I"ll say yes.
It never gets to the next command, access will just repeat the msgbox
question again. and if I answer, "no", the canned error shows up (the
microsoft not in list error)
Do I need some sort of warnings off process in order for the next
command, ENR.setfocus to fire?
Dobs