M
Manuel
Hi everybody,
I have a text box control that I want to perform a
certain subroutine on change, reflecting if the previous
was wiped out. For that and to test it I wrote in Visual
Basic Code for that Private Sub text1_Change()as follows
If [text1] = Null Then
MsgBox "update"
Else
MsgBox "don´t update"
End If
When I deleted the contents of the text box, the
message "don't update" came up.
So I tried instead the following;
If [text1] ="" Then
MsgBox "update"
Else
MsgBox "don´t update"
End If
Still the message "don´t update" came up.
What should I write to reflect the value of the text box
when it´s contents are deleted. It is not recgnizing
(Null) or ("").
Thanks for any help.
Manuel
I have a text box control that I want to perform a
certain subroutine on change, reflecting if the previous
was wiped out. For that and to test it I wrote in Visual
Basic Code for that Private Sub text1_Change()as follows
If [text1] = Null Then
MsgBox "update"
Else
MsgBox "don´t update"
End If
When I deleted the contents of the text box, the
message "don't update" came up.
So I tried instead the following;
If [text1] ="" Then
MsgBox "update"
Else
MsgBox "don´t update"
End If
Still the message "don´t update" came up.
What should I write to reflect the value of the text box
when it´s contents are deleted. It is not recgnizing
(Null) or ("").
Thanks for any help.
Manuel