Results 1 to 3 of 3
  1. #1
    OtakiriLad is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Nov 2015
    Location
    Golden Beach, Queensland
    Posts
    4

    Using a Pop-up form for data entry from sub-form


    I am attempting to develop a recipe database with a fewbells and whistles more than the standard fare.


    In its simplest form I want a data entry presentation thatshows the base recipe details together with a subform being a list of unboundhighly formatted ingredients. When you click on an individual ingredient lineitem a form appears allowing addition/update of the ingredient details.


    The reason for the unbound items is that I want to showgrammatically correct formatting eg show ‘1 onion’ but ‘2 onions’ or ‘3/4 cup’but ‘1 1/2 cups’. The underlying database will contain ‘type’ tables containingthe singular and plural versions of unit of measure, ingredient item etc. Thepop-up form will have combo boxes presenting both so for unit of measure willshow ‘cup/cups’.


    My problem is for a new line item, how do I populate theintended foreign key to the parent recipe table in the pop-up form as it is nullin the unbound record at the time of the ‘on click’ event.


    I imagine such a situation could exist in variousapplications (Customers and Orders, Students and Courses, etc) but I haven’tbeen able to find a case where a pop-up form is used for the child data entry.


    Any suggestions are welcome.
    Dave

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    This has been topic of discussions before. Various ways to accomplish.

    1. pass ID to opening form with OpenArgs

    2. set a global variable or a TempVar variable

    3. popup form references control on calling form
    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
    OtakiriLad is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Nov 2015
    Location
    Golden Beach, Queensland
    Posts
    4
    Thank you kind sir, the global variable option did the trick.

    Dave

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

Similar Threads

  1. Replies: 4
    Last Post: 03-27-2018, 03:32 AM
  2. Replies: 7
    Last Post: 10-13-2016, 12:32 PM
  3. Replies: 4
    Last Post: 04-20-2015, 08:26 AM
  4. Replies: 1
    Last Post: 05-26-2014, 10:31 AM
  5. Replies: 5
    Last Post: 03-09-2014, 07:16 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