Ron.snape@virgin-nospam.net was telling us:
Ron.snape@virgin-nospam.net nous racontait que :
> Jean
>
[quoted text clipped - 13 lines]
> 2) If ActiveDocument.Formfields("bkFControl").Result = "EMP" then
> ....
If you double-click on the field, what bookmark name do you see in the
bottom right corner of the property dialog?
> 2) If ActiveDocument.Formfields("bkFControl").Result = "EMP" then
should return true if, as you say, the formfield contains "EMP".

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Ron.snape@virgin-nospam.net - 27 Nov 2004 13:11 GMT
Jean
Sorry I haven't responded earlier - payroll falling down around my ears!
If I double-click on the field, I get a box headed 'Text Form Field options'
and under Field Settings, the Bookmark name is shown as 'bkFControl'.
By trial & error, I think that I've now solved the problem by using the
instruction :
FControl = ActiveDocument.Formfields("bkFControl").Range.Text
which does return the text value held in the FormField, and my code now
seems to run properly.
Thanks for your assistance.
Regards
Ron Snape
> Ron.snape@virgin-nospam.net was telling us:
> Ron.snape@virgin-nospam.net nous racontait que :
[quoted text clipped - 22 lines]
> > 2) If ActiveDocument.Formfields("bkFControl").Result = "EMP" then
> should return true if, as you say, the formfield contains "EMP".