Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null String Value Property

Status
Not open for further replies.

jtamu

MIS
May 16, 2001
3
US
Instead of using:

Me.DateClosed.SetFocus
If Me.DateClosed.Text = "" Then

I want to use the text box's value property to bypass having to set focus.

Me.DateClosed.Value = "" Then

I don't think .Value will accept zero lengh string arguments. I have tried using Null, 0, and the IsNull function.
How do I test the condition when the text box is empty?

 
Easy, this works for me all the time...

If nz(Me.DateClosed,"") = "" then

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top