M
Mark J Kubicki
the form has multiple controls, of which (1), txtType, should be required
prior to being allowed to enter data into any of the other control
I have added this code which effectively "validates the data" (although this
may not be the best placer to do this and your suggestions are
appreciated...); however, it does NOT return the focus to the control
(txtType)
(i.e. the data in txtType is evaluated, but if it fails, the focus
remains at the subsequently selected control)
I'm (as I often am) perplexed
Private Sub txtType_LostFocus()
Dim response
If IsNull(Me.txtType) = True Or Me.txtType = "" Then
Me.txtType.SetFocus
response = MsgBox("You MUST enter Type before moving on...", vbOKOnly)
End If
thanks in advance,
mark
prior to being allowed to enter data into any of the other control
I have added this code which effectively "validates the data" (although this
may not be the best placer to do this and your suggestions are
appreciated...); however, it does NOT return the focus to the control
(txtType)
(i.e. the data in txtType is evaluated, but if it fails, the focus
remains at the subsequently selected control)
I'm (as I often am) perplexed
Private Sub txtType_LostFocus()
Dim response
If IsNull(Me.txtType) = True Or Me.txtType = "" Then
Me.txtType.SetFocus
response = MsgBox("You MUST enter Type before moving on...", vbOKOnly)
End If
thanks in advance,
mark