Results 1 to 5 of 5
  1. #1
    jimmonator is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Portland, OR
    Posts
    26

    Subform Record Numbers

    I'm a newbie. I have a master record (Donor Record) with a subform (Notes). This Donor Record has a key field, which is a number, called ID.



    On a Donor Record, in the Notes subform, I want to click create new record and have the resulting new Notes record contain the ID number from current Donor Record, creating a one-to-many relationship, with records (notes) sorted chronologically.

    Right now, I am seeing ALL the notes in the Notes table.

    What do I need to do?

  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,640
    The subform control (the control on the main form, not the subform itself) has master/child link properties. You want to set those to the ID field in each table. If you used the subform wizard, it should have asked about linking fields.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Have you tried setting the default ID in the subform to the ID in the master record, e.g. Forms.Donor.ID ?
    PBaldy's comment should have taken care of your problem.
    Last edited by hertfordkc; 10-13-2011 at 11:37 AM. Reason: Incomplete, maybe incorrect

  4. #4
    jimmonator is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Portland, OR
    Posts
    26

    Solved it

    Well, that was quick and worked perfectly. Thank you!

  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,640
    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: 9
    Last Post: 10-21-2011, 08:38 AM
  2. Replies: 7
    Last Post: 07-15-2011, 01:58 PM
  3. Record Numbers
    By nashr1928 in forum Forms
    Replies: 7
    Last Post: 06-26-2010, 07:58 PM
  4. Record numbers
    By nashr1928 in forum Reports
    Replies: 2
    Last Post: 06-25-2010, 03:58 PM
  5. Record Numbers Displayed on Form
    By symfony925 in forum Forms
    Replies: 3
    Last Post: 10-13-2009, 11:06 AM

Tags for this Thread

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