Hi everyone,
I don't know want happen to my form. I have put some simple code but it seems don't work. I am using "Isnull" function to forced the user to fill the text field. But I have tested it seems nothing happen. I have try to put the code on the main form, it didn't work and I put on the text field itself it didn't work either. And also, I put a checK point in my programmation, this time it works. It seems that it skip the code in a certain point. I don't know why?
What's wrong with it, I think this is quit simple?
Thanks in adavance,
Le
I don't know want happen to my form. I have put some simple code but it seems don't work. I am using "Isnull" function to forced the user to fill the text field. But I have tested it seems nothing happen. I have try to put the code on the main form, it didn't work and I put on the text field itself it didn't work either. And also, I put a checK point in my programmation, this time it works. It seems that it skip the code in a certain point. I don't know why?
Code:
Private Sub txtClientName_BeforeUpdate(Cancel As Integer)
If IsNull(Me.txtClientName) Then
MsgBox "Add a client name", vbExclamation
Cancel = True
End If
End Sub
What's wrong with it, I think this is quit simple?
Thanks in adavance,
Le