Results 1 to 6 of 6
  1. #1
    andrebmsilva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    19

    Combobox On SubSubForm Should Show Values based on Data from SubForm


    Hello,

    I have a PopUp showing the Product.
    Then I have subForm showing the yarns.
    Then I have a subsubForm where i need to select dying lots with a combobox.
    I want to restrict the dying lots that show up in the combobox based on IDProductYarn present on subFormYarns.
    How should I make a reference in the query of the combobox (in the subsubform) based on IDProductYarn placed on subFomYarns?
    I've tried this, but didnt work:
    Forms![subFormYarns]![IDProductYarn]
    When i click on the combobox tells me to insert IDProductYarn.

    Thank you

  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
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    andrebmsilva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    19
    Hello,

    Thank you for answering me.
    I have tried a lot of different syntax and still wasn't able to get it working...
    In the combobox i define the row source as a query and then in Criteria I've tried differente syntaxes but still nothing...

    Am i doing it right?

  4. #4
    andrebmsilva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    19
    Click image for larger version. 

Name:	duvida.PNG 
Views:	13 
Size:	73.2 KB 
ID:	12399

    This is the problem... the subform can't get the parent IDcorFio

  5. #5
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Try using the expression builder to get the correct syntax.Select the main form first and then the nested subforms.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It still doesn't look like you've used the link to find the correct syntax. It would include the main form's name too.
    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: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Combobox to show two field values
    By lnordstrom in forum Forms
    Replies: 2
    Last Post: 03-30-2011, 12:33 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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