Results 1 to 5 of 5
  1. #1
    acannon is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Birmingham, AL
    Posts
    16

    Question Alternate Form Navigation Paths

    I have a form, Form A, which has a number of command buttons to navigate to other forms using the onclick events. Form B is one of those and contains general information about an item. Foms C - H are other forms accessed from Form A which allow entry of details that vary depending on the type of item. The normal navigation has been to always return to Form A and then navigate to another detail form. My users have requested to be able to navigate to C - H from B also. There is a field in Form B that allows using a Select Case structure to navigate to the appropriate C - H. What I need is a way for the detail forms C - H to know if they were entered from Form A or Form B and return to the one from which they were entered. This alternate return path has me stumped. Can someone please help me? I consider myself either an advanced beginner or a beginning moderate user/programmer.

    Thanks,
    Alan

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One option would be to use pass the "from" form in OpenArgs, which could then be used when returning.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    If you go from A (list) to B (detail) then the query for form B is for ALL records BUT the code in A filters it. docmd.openform "frmDetail" ,,"[id]= " & me!ID

    Do the same with the other forms, open then next form using the WHERE clause in the openform.

  4. #4
    acannon is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Birmingham, AL
    Posts
    16
    Thanks, pbaldy! The OpenArgs use solved the problem!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 03-02-2015, 02:14 PM
  2. Replies: 5
    Last Post: 11-04-2014, 08:13 AM
  3. Replies: 12
    Last Post: 10-23-2014, 02:08 AM
  4. Replies: 2
    Last Post: 06-26-2013, 06:31 AM
  5. Setting paths different for each form
    By sailinxtc in forum Programming
    Replies: 9
    Last Post: 04-04-2010, 09:03 PM

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