Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Martin D Martin D is offline
external usenet poster
 
Posts: 6
Default Word 2003 Forms (JUMP TO Fields)

I am creating a word 2003 form and was wondering if it is possible to skip
fields depending on the selection in a drop down menu.

ie. QUESTION: Is there a requirement for a COSHH Assessment ? DROP DOWN
ANSWER-----Yes/NO
If yes just go to the next field box if NO then Jump this section to another
section/Field further down the form?

Any takers?
--
Regards
Martin D
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Word 2003 Forms (JUMP TO Fields)

It is possible, but only with a macro.

The basic idea of changing which form field is "next" is discussed at
http://www.word.mvps.org/FAQs/TblsFl...etTabOrder.htm. The macros
in that article can be modified to do what you want. For example, if
you write an exit macro for the dropdown field, it can change the form
field to which the cursor will jump. It can also change the Enabled
properties of the fields so the user can't use the mose to fill the
wrong ones.

As a simple example, let's say the dropdown is named ddCOSHH, and
there are four text form fields named Text1 through Text4, where "Yes"
in the dropdown means that Text1 and Text2 should be filled, otherwise
Text3 and Text4. Then this macro will do the job:

Sub ExitDropdown()
Dim rslt As String
With ActiveDocument
rslt = .FormFields("ddCOSHH").Result
If InStr(UCase(rslt), "YES") Then
.FormFields("Text1").Enabled = True
.FormFields("Text2").Enabled = True
.FormFields("Text3").Enabled = False
.FormFields("Text4").Enabled = False
.FormFields("Text1").Range.Fields(1).Result.Select
Else
.FormFields("Text1").Enabled = False
.FormFields("Text2").Enabled = False
.FormFields("Text3").Enabled = True
.FormFields("Text4").Enabled = True
.FormFields("Text3").Range.Fields(1).Result.Select
End If
End With
End Sub

--
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.


On Wed, 6 Jan 2010 07:32:01 -0800, Martin D
wrote:

I am creating a word 2003 form and was wondering if it is possible to skip
fields depending on the selection in a drop down menu.

ie. QUESTION: Is there a requirement for a COSHH Assessment ? DROP DOWN
ANSWER-----Yes/NO
If yes just go to the next field box if NO then Jump this section to another
section/Field further down the form?

Any takers?

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Martin D Martin D is offline
external usenet poster
 
Posts: 6
Default Word 2003 Forms (JUMP TO Fields)

MANY THANKS jAY FOR YOUR HELP
--
Regards
Martin D


"Martin D" wrote:

I am creating a word 2003 form and was wondering if it is possible to skip
fields depending on the selection in a drop down menu.

ie. QUESTION: Is there a requirement for a COSHH Assessment ? DROP DOWN
ANSWER-----Yes/NO
If yes just go to the next field box if NO then Jump this section to another
section/Field further down the form?

Any takers?
--
Regards
Martin D

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Martin D Martin D is offline
external usenet poster
 
Posts: 6
Default Word 2003 Forms (JUMP TO Fields)


MANY THANKS jAY FOR YOUR HELP
--
Regards
Martin D


"Martin D" wrote:

I am creating a word 2003 form and was wondering if it is possible to skip
fields depending on the selection in a drop down menu.

ie. QUESTION: Is there a requirement for a COSHH Assessment ? DROP DOWN
ANSWER-----Yes/NO
If yes just go to the next field box if NO then Jump this section to another
section/Field further down the form?

Any takers?
--
Regards
Martin D

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbers with negative indents jump to the right (Word 2003 and 200 Jonny S Microsoft Word Help 4 July 13th 09 07:27 PM
Forms in Word 2003 - drop down fields true blue Microsoft Word Help 2 June 11th 09 05:25 AM
Word 2003 Forms to Word 2007 cannot edit fields Dianna Microsoft Word Help 1 January 7th 09 09:39 PM
Word 2003 - unexpected file size jump AlasdairDSS Microsoft Word Help 2 June 23rd 08 08:18 AM
repeating fields in forms in Word 2003? PAW Microsoft Word Help 1 April 30th 07 11:21 AM


All times are GMT +1. The time now is 01:41 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"