Form field in conditional statement

  • Thread starter Thread starter erniewyles
  • Start date Start date
E

erniewyles

Can a form field be used as one of the outputs of a conditional statement.

Example, if a certain field = y then type y, else insert form field.
 
Hi Ernie,

No. Perhaps if you tell us what you're trying to achieve someone can suggest a suitable approach.
 
Sure thing. We create documents from a database and populate areas of our
documents via bookmarks. Well, what I hope to do is have a bookmark
populate, and if there's no data for populating then instead create a form
text field. This way, by protecting the document, the user can easily
navigate to the unpopulated fields and fill them out manually.

macropod said:
Hi Ernie,

No. Perhaps if you tell us what you're trying to achieve someone can suggest a suitable approach.

--
Cheers
macropod
[Microsoft MVP - Word]


Can a form field be used as one of the outputs of a conditional statement.

Example, if a certain field = y then type y, else insert form field.
 
Hi ernie,

If you're populating the bookmarks via vba, it's an easy enough thing to test whether there are any data to insert and, if not,
insert a text formfield or a dropdown formfield (if you've got multiple choices to offer) instead.

Alternatively, you could simply put formfields at all possible locations and simply update their results via your vba proacess. For
those formfields for which there are data, you could then set the 'fill-in enabled' property to false to prevent subsequent editing.

--
Cheers
macropod
[Microsoft MVP - Word]


Sure thing. We create documents from a database and populate areas of our
documents via bookmarks. Well, what I hope to do is have a bookmark
populate, and if there's no data for populating then instead create a form
text field. This way, by protecting the document, the user can easily
navigate to the unpopulated fields and fill them out manually.

macropod said:
Hi Ernie,

No. Perhaps if you tell us what you're trying to achieve someone can suggest a suitable approach.

--
Cheers
macropod
[Microsoft MVP - Word]


Can a form field be used as one of the outputs of a conditional statement.

Example, if a certain field = y then type y, else insert form field.
 
See the example -
Repeat a block of formatted text and form fields based upon the content of
another form field
at http://www.gmayor.com/word_vba_examples.htm
You may find http://www.gmayor.com/SelectFile.htm useful also.

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Sure thing. We create documents from a database and populate areas
of our documents via bookmarks. Well, what I hope to do is have a
bookmark populate, and if there's no data for populating then instead
create a form text field. This way, by protecting the document, the
user can easily navigate to the unpopulated fields and fill them out
manually.

macropod said:
Hi Ernie,

No. Perhaps if you tell us what you're trying to achieve someone can
suggest a suitable approach.

--
Cheers
macropod
[Microsoft MVP - Word]


"(e-mail address removed)"
Can a form field be used as one of the outputs of a conditional
statement.

Example, if a certain field = y then type y, else insert form field.
 

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

Back
Top