Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for an value in a text box
Message
 
To
05/12/1999 16:01:10
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00298939
Message ID:
00299105
Views:
16
Noman,
Try:
If Trim(Text1.Value) = "" Then
Msgbox "Bound Textbox is empty)
End If

>Hello everyone
>I have a textbox that shows the sum of field values generated by a query. My problem is when there are not any records found by the query nothing appears in the textbox I can't check for the correct state of the texbox. I mean I can't find out if its empty or not. I have used ISNULL and ISEMPTY but they don't give a correct result. I have put a watch on the value and when the text box is empty the value of the textbox is nothing, its not even NULL or empty string.
>Can anyone help me out.
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform