Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word - format mask a form element

Status
Not open for further replies.

thomgreen

IS-IT--Management
Sep 4, 2002
56
US
I am building a form and need to do it in Word. I would like to have a user enter a date and have a mask on the format. I tried with a form field and form protecting the document but couldn't get is to work. any ideas?
 
Hello, you didn't say what you tried, but here's how it is done:

Insert a text form field, right-click the form field and choose Properties. In the Properties box, change the "Type" to Date. Under "Date Format", select the date format you like. Lock the form. When someone enters a valid date (if a valid date isn't entered, they get an error message) and tab off the field, the date will convert itself to whatever format you selected.
 
thank you for the info. I actually tried that initially. I am wondering if what I am looking to do is too picky. When doing the above if I enter a masked date as '06182003' I get an error. if I set the mask for 'mm/dd/yyyy' and type in '06/18/03' then the text field will reformat to proper '06/18/2003'. With this format mask am I forced to use the '/' in my input and will it just not recognize the numeric string and reformat?
 
thank you very much! Just wanted to make sure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top