Results 1 to 6 of 6
  1. #1
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085

    Linked Sub-Form No Data


    I have a main form with a subform the main form consists of Patient Data and the subform consists of tests each patient has had. There are 6 possibilities. My problem is that if the patient hasn't had any of the tests yet the subform is completely blank so the user is unable to enter any new data. The main form and subform are linked by PatientID. How do I get the subform to display the fields so a new record can be added when none currently exist???

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Check the "Allow Additions" property of the subform. This needs to be set to yes.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    It already is set to yes.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    If the subform uses a query as its record source, are able to enter new records directly into the query.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    No, that was the issue. Modified the subform record source and it now works the way I want it to. Instead of using the query I used the table with the filter and filteron properties to limit the data the way the query did. Works like a charm. Wish I'd thought of that earlier would've saved me a couple of hours banging my head against a wall.

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by RayMilhon View Post
    No, that was the issue. Modified the subform record source and it now works the way I want it to. Instead of using the query I used the table with the filter and filteron properties to limit the data the way the query did. Works like a charm. Wish I'd thought of that earlier would've saved me a couple of hours banging my head against a wall.
    Ray, just enjoy the lack of head banging now.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Archiving Linked Data
    By kevinegg45 in forum Access
    Replies: 3
    Last Post: 01-08-2013, 01:07 PM
  2. Missing data from linked table
    By tprice5 in forum Access
    Replies: 1
    Last Post: 06-28-2012, 02:35 AM
  3. Replies: 1
    Last Post: 05-17-2012, 05:02 PM
  4. Replies: 5
    Last Post: 12-30-2011, 01:01 AM
  5. load csv data into linked table
    By acces2oracle in forum Programming
    Replies: 2
    Last Post: 09-12-2011, 04:47 AM

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