Thread: [Solved] Mandatory field
View Single Post
 
Old 05-09-2013, 06:30 PM
fumei fumei is offline Windows 7 64bit Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

It also seems an odd methodology to use OnTime and a Sub to work this. Especially as you have no serious error trapping.

For example, if "Text3" - and that is an excellent name for the field - is blank, GoBacktoText3 gets fired. But what if the value is "Yogi Bear", or 2156-78923-11? I am not saying someone would put a stupid entry, but as it stands ANY entry at all is acceptable.

However, be that as it may, are you wedded to trying to validate the values of the formfields on document save, rather than as each is exited.
Quote:
I have the follwoing code which works great as long as its used in 'Normal ThisDocument'. Any ideas how I get this to work in the 'Project Thisdocument'
Are you saying it does not work if you put it in the ThisDocument module of the Active Document?
Reply With Quote