Required form fields

G

Guest

Hello. I've created a form, but would like the text form fields to be
required before a user can go forward within the form. Is this possible, and
if so, how do I do this?
 
J

Jay Freedman

The general idea for checking the content of a form field for validity
(whatever that means for the specific form field) is covered in
http://word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm. If you just want
to make sure that the field isn't empty, then replace the line

If Len(.Result) > 0 And Left$(.Result, 3) <> "KLM" Then

with the line

If Len(.Result) = 0 Then

See http://www.gmayor.com/installing_macro.htm if needed.

--
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