blank textbox?

bella

Registered User.
Local time
Today, 21:25
Joined
Jul 31, 2003
Messages
38
Hi :)

How do i say

"If a the text value i get from a textbox is blank THEN DO whatever" in vb??

something like

IF Me!txtLO1 = "" Then ...

but this doesnt seem to be working??

Bella
 
Code:
If IsNull(Me.txtMyTextbox) Then
 
If IsNull(txtMyTextbox) or txtMyTextbox = "" Then

The text box will no longer be Null if the user keys data in the field and then clears it out by using the delete key or backspace key.

HTH
 

Users who are viewing this thread

Back
Top Bottom