I wish to have a msg box pop up to the user if my text box is null, and hten cancel the update...else, have it run as normal. here is my current code:
Code:
If Me.txtStoreID = Null Then
MsgBox ("Hey")
Cancel = True
End If
It updates the record if txtStoreID is null, and it isn't popping up a msg box. If, however, I change it to say, me.txtStoreID=0 and I put store id to 0, then the box works...what am I doing wrong with the null value? Thanks!