NigelShaw
Registered User.
- Local time
- Today, 06:23
- Joined
- Jan 11, 2008
- Messages
- 1,575
Hi,
i am trying to routine that checks text while you type however, all i get is an error saying Invalid use of Null'
i am using the OnChange event
here is a snippet
my thought was that as soon as you add text into the textbox, there wouldnt be a Null so why do i get the error?
i added a button with the same calling code and it works just fine so the routine itself is ok. Its the updating while typing that doesnt work.
i also tried this yesterday on my TreeView where i wanted to type a name into a textbox and have the tree update while i type but i got the same message
cheers
Nigel
i am trying to routine that checks text while you type however, all i get is an error saying Invalid use of Null'
i am using the OnChange event
here is a snippet
Code:
If Len(Me.MyTextbox.Value) = 0 Then
Zap = Nz(CheckMyText(Me.MyTextbox.Value), 0)
Select Case ZAP
Case 2
DoSomeCode
Case 8
DoSomeOtherCode
End Select
my thought was that as soon as you add text into the textbox, there wouldnt be a Null so why do i get the error?
i added a button with the same calling code and it works just fine so the routine itself is ok. Its the updating while typing that doesnt work.
i also tried this yesterday on my TreeView where i wanted to type a name into a textbox and have the tree update while i type but i got the same message
cheers
Nigel