Checking if strings are not equal to each other

doobybug1

Registered User.
Local time
Today, 03:36
Joined
May 22, 2012
Messages
36
How can I check if a txtField in a form is not equal to a word? I am assuming i cannot use <>
 
That depends on what exactly you mean by 'not equal to a word?'
- number?
- date?
- text ... but gibberish e.g. sddfrt5nbmj?
- all the above ... etc
 
I mean text ex: Me.txtField <> "Fish"
 
You've answered your own question:

If Me.txtField <> "Fish" Then
 
I wasn't sure if <> works with text that's why! :) Thanks
 

Users who are viewing this thread

Back
Top Bottom