W
Wayne-I-M
Hi All
I have an unbound (continous) subform that users can select a record and
then go to the corresponding record on the main form (with recordset clone).
I set the focus to a text box on the main form - which is the problem as this
has a "OnGotFocus" event. = Basically users select a subform record go to the
main form and other "stuff" runs.
"It all works fine" other than erorr message 2110 telling me You Can Go To
The Text Box. (which of course you can)
I have tried getting rid of the message with docmd.warnings false then true
and also trapping the error with
Private Sub Form_Click()
On Error GoTo Form_Click_Err
'......
RecordsetClone "stuff" goes here
'......
Err_Form_Click:
Select Case Err.Number
Case 2110
Resume Exit_Form_Click
MsgBox Err.Description
Resume Exit_Form_Click
End Select
End Sub
This line is highlighted
Resume Exit_Form_Click
Any help would be good as I have spent hours on this and obviously doing
"som-it" wrong.
As I said it all works fine other than the iritating message
Many thanks for any tips.
I have an unbound (continous) subform that users can select a record and
then go to the corresponding record on the main form (with recordset clone).
I set the focus to a text box on the main form - which is the problem as this
has a "OnGotFocus" event. = Basically users select a subform record go to the
main form and other "stuff" runs.
"It all works fine" other than erorr message 2110 telling me You Can Go To
The Text Box. (which of course you can)
I have tried getting rid of the message with docmd.warnings false then true
and also trapping the error with
Private Sub Form_Click()
On Error GoTo Form_Click_Err
'......
RecordsetClone "stuff" goes here
'......
Err_Form_Click:
Select Case Err.Number
Case 2110
Resume Exit_Form_Click
MsgBox Err.Description
Resume Exit_Form_Click
End Select
End Sub
This line is highlighted
Resume Exit_Form_Click
Any help would be good as I have spent hours on this and obviously doing
"som-it" wrong.
As I said it all works fine other than the iritating message
Many thanks for any tips.