Results 1 to 7 of 7
  1. #1
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160

    subform continuous form not display records


    Hi, I have a main form with a subform. the main form displays the record from the single record table but the subform - continuous form - is not displaying any records from the many records table. Can you please suggest a check list of what I need to check so that my form and subform are synchronized and both display their records.

    Thanks for any help
    David

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    If tables have the primary and foreign key fields and Master/Child Links properties are properly set then the records should synchronize.
    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
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160
    Thanks for this.
    Excuse my ignorance but is a foreign key defined or is it defined by it's use? Can you give me an example of the relationship between a form and subform.

    Thanks
    David

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Main form bound to table Orders. Subform bound to table OrderDetails.

    Primary key of Orders is saved as foreign key in OrderDetails.

    The is basic relational database principle.
    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.

  5. #5
    mdavid is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    160
    Thanks June,
    So in this case Foreign key is on the many side and primary key is the single side. I don't define it it's defined by its use, is that correct?

    While we're here I have another question - or 2, can I put a Split Form in a tab control page. Is a Split Form only a single view with datasheet view or could it be single with continuous form.

    Thanks for your time and patience
    David

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Split form is Single view in one section and Datasheet in other.

    Apparently a split form cannot be a subform, on or off Tab control.
    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.

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe easier to get with pictures............

    From Post #3:

    Quote Originally Posted by mdavid View Post
    Excuse my ignorance but is a foreign key defined or is it defined by it's use?
    You define a field as a foreign key
    Click image for larger version. 

Name:	Presentation1.png 
Views:	9 
Size:	21.1 KB 
ID:	31247


    Quote Originally Posted by mdavid View Post
    Can you give me an example of the relationship between a form and subform.
    June used "Orders/OrderDetails", I have "Students/StudentsTakingCourses". Same idea....
    Main form/Sub form:
    Click image for larger version. 

Name:	MainSub.png 
Views:	10 
Size:	244.8 KB 
ID:	31248

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

Similar Threads

  1. Replies: 21
    Last Post: 10-13-2016, 03:29 PM
  2. Replies: 1
    Last Post: 09-02-2015, 01:16 AM
  3. Replies: 5
    Last Post: 08-24-2013, 08:04 PM
  4. Replies: 2
    Last Post: 04-30-2013, 07:55 PM
  5. Replies: 16
    Last Post: 02-13-2012, 03:32 PM

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