P
Pam
Hi,
I have the following procedure set for the BeforeUpdate event for a text box
on a subform. Both referenced text boxes are on the subform.
Private Sub PriceQuote_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Analysis) Then
MsgBox "Please enter Analysis date!!"
Me.Analysis.SetFocus
End If
End Sub
It will give the msg as it should, but I get an error 2108 msg, "You must
save the field before you execute the GoToControl action, the GoToControl
method, or the SetFocus method."
The SetFocus line is highlighted in code. I haven't seen this before and
don't know how to correct it. Can someone please advise how to do so?
Thank you in advance,
Pam
I have the following procedure set for the BeforeUpdate event for a text box
on a subform. Both referenced text boxes are on the subform.
Private Sub PriceQuote_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Analysis) Then
MsgBox "Please enter Analysis date!!"
Me.Analysis.SetFocus
End If
End Sub
It will give the msg as it should, but I get an error 2108 msg, "You must
save the field before you execute the GoToControl action, the GoToControl
method, or the SetFocus method."
The SetFocus line is highlighted in code. I haven't seen this before and
don't know how to correct it. Can someone please advise how to do so?
Thank you in advance,
Pam