If statement based on Text Box

S

Sammy

Hi,

I want an event to occur based on IF the user enters something in the text
box on my form.

I know how to do the opposite which would be "If ofrmMyForm.Text = "" Then"

I've tried using Null, I've tried the MaxLength, nothing seems to work.

Thanks for any advice.
 
R

Russ

If Not ofrmMyForm.Text = "" then...

Is that what you are asking

Len() gives number of characters

There is also a change_event for userform textboxes.
 
S

Sammy

That did the trick! Thank you

Russ said:
If Not ofrmMyForm.Text = "" then...

Is that what you are asking

Len() gives number of characters

There is also a change_event for userform textboxes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top