Instead of one check on exit from the last field, I'd recommend a separate
validation for each field. The reason is that the user could use the mouse
to leave the FName or Initial field without ever going into the LName field,
and then no validation would be done.
You can use the macro in
http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm as a basis.
Change the If statement to
If Len(Trim(.Result)) = 0 Then
to check for a field that's empty or contains only blank characters.

Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> For example, a protected form has three fields: FName, Initial, and
> LName. I need help writing an On Exit macro for the LName field that:
[quoted text clipped - 8 lines]
> Charlie
> charlie6067
charlie6067 - 05 Oct 2006 20:55 GMT
Thanks Jay - that worked. Yes, it is better to alert the user right
after the error instead at the end of the form. I appreciated the code.
Charlie
charlie6067
> Instead of one check on exit from the last field, I'd recommend a separate
> validation for each field. The reason is that the user could use the mouse
[quoted text clipped - 28 lines]
> > Charlie
> > charlie6067