Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    2

    Skipping Certain fields in a form based on criteria

    I have a form where the user chooses a response from a drop-down list. If the response is Items 1-6 I want them to tab to the next field and fill it in (This part works just fine). The problem comes in if the user chooses Item 7 from the drop-down. I want to skip the next three fields/tab stops and go to the fourth tab stop.



    So I'd like it to do something like this: If Item = Item 7, then skip A, B, C and go to D (or set focus on D....etc)

    Any help will be greatly appreciated.

  2. #2
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Well, it sounds like you already know what to do. Just use the .SetFocus Property of whatever Form field you want to jump to:

    Code:
      If Me!Response = 7 Then
        Me!FieldD.SetFocus
      Else
        Me!FieldA.SetFocus
      End If
    You'll need to change the items in bold to the actual Form fields.

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Yes, thank you! I was getting tangled up in the dang syntax, (think I looked at it for too long!) It really was that simple, again, THANK YOU!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Autofill form fields based on another field
    By ljs1277 in forum Access
    Replies: 3
    Last Post: 02-16-2010, 02:51 PM
  2. Replies: 1
    Last Post: 02-03-2010, 08:17 AM
  3. Skipping Fields in forms
    By who in forum Forms
    Replies: 1
    Last Post: 06-17-2009, 12:01 PM
  4. Replies: 6
    Last Post: 06-03-2009, 02:01 PM
  5. Open form based on Subform criteria
    By Suzan in forum Programming
    Replies: 0
    Last Post: 04-25-2006, 02:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums