validation of input in textbox

  • Thread starter Thread starter Peer
  • Start date Start date
P

Peer

I can't find how to validate the input of a textbox.
I want an errormessage to appear when the user leaves the textbo
empty. How do I do this?

Thanks in advance.

P.S.
I'm extremely new at VBA, so please forgive me any stupid questions
 
There is no built in support for validating a textbox.

You would need to write code to run at the appropriate time to check whether
the textbox is empty or not.

Since you have shared nothing about whether the textbox is from the forms
toolbar or from the control toolbox toolbar or where it is located or when
it is to be validated, or what actions you want to take if the textbox is
found empty, there is little help that can be offered.
 

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

Back
Top