Results 1 to 4 of 4
  1. #1
    DaveMeadows is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2016
    Posts
    2

    Pass value from Form/Master form to second Form or SubForm

    Hi All,

    I'm currently building a stock database which will include a form where you can book in stock deliveries to the database.

    The table contains the following fields: ID, Roll Number, Roll Length, Date Received, PO Number etc.

    A single delivery may contain multiple rolls so the PO Number and Date Received will all be identical, but the Numbers, IDs and Lengths will be unique.

    I don't want to have to repeatedly type repeat data so I would like a Form where you can enter the repeated delivery details in one section, and then a second Form or SubForm where the unique data can be entered.

    I've tried setting the data fields where values are repeated to look at a single source field for its value (which looks fine within the form itself), but these values aren't saving themselves to the table. The only values that save are the ones that I manually enter.



    Any ideas?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    How about this in the after update event of the control(s):

    http://access.mvps.org/access/forms/frm0012.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DaveMeadows is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2016
    Posts
    2
    Will give it a go! Thanks for your reply.

    In the meantime I've also had a brain wave redesigned my table structure so that I have one table for repeated data that links to a second table containing the unique values. This also worked and I guess is actually better practice in terms of data management and memory usage!

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    If you mean like an invoice header table and a separate table for detail items linked by invoice number, yes that would be a better design than everything in one table.
    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. Resizing master form when subform resizes
    By Lukael in forum Programming
    Replies: 9
    Last Post: 12-16-2015, 09:05 AM
  2. Replies: 12
    Last Post: 11-17-2014, 01:33 PM
  3. Replies: 2
    Last Post: 09-17-2014, 12:06 PM
  4. Issues with subform and master form
    By asmith533 in forum Forms
    Replies: 14
    Last Post: 09-24-2012, 09:13 AM
  5. subform to open form w/ active master record
    By spitfire122 in forum Access
    Replies: 1
    Last Post: 06-28-2011, 04:28 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