Validation of form field

M

Mark

We're still using Word 97!

Can someone assist me with some code which looks at the result of a form
field and if the form field contains a "/" or "\" the user is presented with
a msgbox stating that these characters cannot be used?


Mark
 
D

Doug Robbins - Word MVP

See the article "How to validate the contents of a formfield in a Word form"
at:

http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm

You would use the Instr() function to determine if the .Result of the
formfield contained the invalid characters.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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