modify a line code

  • Thread starter TUNGANA KURMA RAJU
  • Start date
T

TUNGANA KURMA RAJU

how to modify this line of code
If.Me.TextBox2.value <> VbNullString
modify this line to
If.me.TextBox2.value <> 'textstring'
(if Textbox2 value not equal to text value)
I am unable to codify that 'textstring'
 
S

Stefi

Try
If.me.TextBox2.value <> "textstring"
Regards,
Stefi


„TUNGANA KURMA RAJU†ezt írta:
 
B

Bob Phillips

If.Me.TextBox2.Text <> "textstring" Then


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
T

TUNGANA KURMA RAJU

Sorry Bob,
Its not working,i have entered text in textbox2 ,the validation logic is not
working.Why?

where I am wrong
 
T

TUNGANA KURMA RAJU

My question is wrong,i want code for
If textbox2 does not contain any text,then...
 
B

Bob Phillips

If.Me.TextBox2.Text <> "" Then

Met me? How?


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top