Results 1 to 4 of 4
  1. #1
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41

    Access value from a layered form for a query

    Hello All,
    I have a question regarding accessing a value from a "layered" form.

    Main Form = FRM_Main

    Has 4 tabs - Tab_1; Tab_2; Tab_3; Tab_Pends

    Tab_ Pends - Navigation Target is FRM_Pends

    FRM_Pends has 4 tabs
    Tab_Pends1; Tab_Pends2; Tab_ActivePends

    Tab_ActivePends - Navigation Target is FRM_ActivePends

    Two control buttons - Result and Reason.

    Drop down list of Reason depends on Result. If Result is 1 - Reason is A,B,C


    Result is 2 - Reason is D,E,F
    Reason drop down list is based on a query - and i need to access the value of Result in FRM_ActivePends to run the query.

    I am not able to link Result to query accurately. When I use the form it asks me to enter the value for Result inspite of the value being in the form.

    Please give me the correct syntax to access the form. I tried using NavigationSubform but nothing seems to work. I am missing something.

    Thank you for all your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You are using navigation form. Review: https://www.accessforums.net/forms/t...orm-32053.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    June 7,
    I am not using a sub-form.

    What I did was - used Tabbed control - and then connected that tab to a form - NavigationTargetName - I put my form name.
    Would subform naming functions still work on this?

    Does that make sense?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    NavigationTargetName is a property of navigation form button. A standard tab control is a very different animal. Don't think I've seen them used together before. However, ignore the tab control in referencing syntax, as if it weren't even there.

    Supposed to include name of the navigation form container "NavigationSubform", assuming you didn't change it, in the referencing, like:

    =NavigationSubform.Form.ControlName

    Be aware that when switching between buttons of a navigation form, only the fields/controls of the form associated with the active button are available, as described in the referenced link.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Access macro to save query form output
    By sroy in forum Macros
    Replies: 5
    Last Post: 06-14-2013, 01:57 PM
  2. Access Query export to Excel form
    By Odogggoneit in forum Access
    Replies: 1
    Last Post: 01-14-2013, 05:16 PM
  3. Replies: 2
    Last Post: 07-03-2012, 11:46 PM
  4. MS Access Form/Query Setup
    By Datatech in forum Database Design
    Replies: 5
    Last Post: 05-31-2012, 12:08 AM
  5. SQL Query on Access Form
    By BrianFawcett in forum Queries
    Replies: 2
    Last Post: 05-04-2010, 02:57 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