smercer
Registered User.
- Local time
- Today, 18:14
- Joined
- Jun 14, 2004
- Messages
- 442
Hi all
Is there a way to make a textbox (or other control) set to null from visual basic?
At the moment when I want to delete a value from a field, I have to code like this:
and then when I want to check for null value I have to do it like this:
I find this very messy coding, and hard to make the coding to work properly.
Is there a better way of doing it like this?
Thanks in advance
Is there a way to make a textbox (or other control) set to null from visual basic?
At the moment when I want to delete a value from a field, I have to code like this:
Code:
txtTextBox.value = ""
and then when I want to check for null value I have to do it like this:
Code:
if txtTextBox.value <> "" or Not IsNull(txtTextBox.value) then
I find this very messy coding, and hard to make the coding to work properly.
Is there a better way of doing it like this?
Thanks in advance