Forcing a User to Input a Specific Number of Characters

L

Lilbit

I have an ongoing problem where users of my forms occasionally do not ente
a complete telephone number. I have split the telephone number into thre
form fields: one for the area code, one for the 1st three digits, and on
for the last four digits. I need a way to force them to enter th
required number of digits in each form field. Thanks!

-
Message posted using http://www.talkaboutsoftware.com/group/microsoft.public.word.docmanagement
More information at http://www.talkaboutsoftware.com/faq.htm
 
J

Jay Freedman

Lilbit said:
I have an ongoing problem where users of my forms occasionally do not
enter a complete telephone number. I have split the telephone number
into three form fields: one for the area code, one for the 1st three
digits, and one for the last four digits. I need a way to force them
to enter the required number of digits in each form field. Thanks!!

One way is to create an exit macro for the form field to validate the
entry -- see http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm.
The article http://www.gmayor.com/installing_macro.htm may also be useful.

Another way is to create a UserForm (a custom dialog box) that pops up on
entering the form field, and doesn't allow incorrect data to be passed back
to the form. See
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

Lilbit said:
Your site suggestions sounded hopeful, but when I clicked on them I
got the error message, Page could not be found." HELP! Thanks!!

I have no trouble opening those pages.

Instead of clicking the links, try copying them to the clipboard and pasting
them into your browser.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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