VBALearner
Programmer
I wrote this vba code in the after update of a text box.
If Me.Dirty Then
If IsNull(Me!Store_No) Then
MsgBox "Store Number Is Invalid, enter valid store number", vbCritical, ""
Me!Store.SetFocus
Exit Sub
End If
End If
Store_No is from another table. It is an invisible box if store does not match store number.
MY question is I can't seem to get the focus back on store if there is an error. hOw do I do that.
thanks,
Eva
If Me.Dirty Then
If IsNull(Me!Store_No) Then
MsgBox "Store Number Is Invalid, enter valid store number", vbCritical, ""
Me!Store.SetFocus
Exit Sub
End If
End If
Store_No is from another table. It is an invisible box if store does not match store number.
MY question is I can't seem to get the focus back on store if there is an error. hOw do I do that.
thanks,
Eva