Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    new orleans, louisiana
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    interactive form (word 2000)

    i want to make a form where the staff person answers yes or no questions, which then bring up another question (to be answered yes or no). the eventual end of all these answers will be a decision (as to who is the recipient of an inheritance). i don't want the next question to show until the previous one has been answered.

    any advice, or can someone point me to an article or sample? thanks

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: interactive form (word 2000)

    Create all thecontrols (text boxes, combos, checkboxes, whathaveyou) and programmatically set the visible property to False for all but the first.

    Using an appropriate event (possibly the change event for each control), test the answer and set visible to true for the next control you want to appear. You will have to add positioning code to keep the controls aligned.

    Some people take the wizard approach which puts only one question (or one group of questions) on one form with a next button at the bottom. After answering the question, the users clicks Next. When that happens, your code tests for the answer and displays the next appropriate control in the form, etc. etc.

    Just a couple ideas to get you thinking.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,048
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: interactive form (word 2000)

    Hi Kathleen,

    What Kevin is talking about is a UserForm which is a custom-built dialog box using VBA. You may want to look at <A target="_blank" HREF=http://www.mvps.org/word/FAQs/Userforms/CreateAUserForm.htm> How to Create a UserForm</A> on the MVP site.

    While you could make a protected (online) form do what you want, it would involve at least as much coding as the UserForm and probably would be harder to do.

    When you get around to assembling your final document, remember the AutoText feature. It is generally easier to correctly format your text, set any bookmarks or REF fields, and then save it as an AutoText entry. Use your UserForm's code to insert the AutoText entries based on the answers you get.

    Another approach would be using ASK fields, but I'm not sure that this would be a great deal easier either. Take a look at <A target="_blank" HREF=http://addbalance.com/word/download/index.htm#AskField>my downloads page - Ask Field Tutorial</A> if you think this might be how you want to go.
    Charles Kyle Kenyon
    Madison, Wisconsin

  4. #4
    Lounger
    Join Date
    Jan 2001
    Location
    new orleans, louisiana
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: interactive form (word 2000)

    OK, i've tried both Kevin and Charles' advice. i'm getting a nested IF field with a dozen IF-THENs. i don't think that's right.

    i want to ask a question (is it a client Y/N?) if yes, another question comes up, which answer leads to another question.

    sort of like a decision maker or flow chart-every answer leads to another yes or no question. eventually all possibilities are exhausted and you have a result.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •