T
Tru Dixon
I am calling this function from the OnExit_Event
=RequiredField([FirstName])
The problem I am having is: When the user selects "Yes"
from the Prompt MSGBox. The cursor is not returned to the
textbox that prompted the message.
Function RequiredField(FieldInfo As Variant) As Variant
'confirms if user wants to leave field blank
Dim Response As Integer
Dim Cancel As Integer
If IsNull(FieldInfo) Then
Response = MsgBox("It is recommended that you
complete this field." & Chr(13) & Chr(10) & _
"Do you wish to do that now?", vbYesNo +
vbExclamation, "Required Field!")
If Response = vbNo Then
Cancel = False
Else
Cancel = True
End If
End If
End Function
=RequiredField([FirstName])
The problem I am having is: When the user selects "Yes"
from the Prompt MSGBox. The cursor is not returned to the
textbox that prompted the message.
Function RequiredField(FieldInfo As Variant) As Variant
'confirms if user wants to leave field blank
Dim Response As Integer
Dim Cancel As Integer
If IsNull(FieldInfo) Then
Response = MsgBox("It is recommended that you
complete this field." & Chr(13) & Chr(10) & _
"Do you wish to do that now?", vbYesNo +
vbExclamation, "Required Field!")
If Response = vbNo Then
Cancel = False
Else
Cancel = True
End If
End If
End Function