How do you prevent carriage returns in form fields?

G

Guest

Can someone please tell me, how I can prevent users from putting carriage
returns in a form field. Even with the form field properties set maximum
length, you can still hit enter and it slides everything down.

Thanks
 
G

Graham Mayor

Set the form field in a borderless table cell of fixed dimensions.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

You can code the Enter key to act like a tab (going to the next field); see
“WD: How to Code ENTER Key to Move to Next Field in Formâ€
http://support.microsoft.com?kbid=211219. But most form makers just put the
fields in table cells with the row height set to an Exact amount.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

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