Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    Looks like Yes. I will take a look and like you know later.


    Thank you very much!

  2. #17
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    I just checked and the combox doesn't link with the student selected courses. on the subform, for each student, the combox should only show the courses related with this student. if the student has one course, then only show this course; if student has 3 courses, then show these these courses. please see the table for "student selected courses" which i post yesterday. Thanks!

  3. #18
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    I only have a problem with the combox. here is my real sumform
    Attached Thumbnails Attached Thumbnails Detail.jpg  
    Last edited by cindyLiu; 05-25-2021 at 07:08 AM. Reason: image wasn't be added

  4. #19
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    I only have a problem with the combox. here is my real sumform
    You keep mentioning a combobox not working. What combobox are you referring to?

  5. #20
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    right of Recovery Service 1, and right of Recovery Service 2. These two files should use table "student selected courses".

  6. #21
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Click image for larger version. 

Name:	frmsub.png 
Views:	10 
Size:	233.6 KB 
ID:	45312

    I don't understand the problem.
    subForm is only showing one record related to the master form record.

    Perhaps you should explain more of how the tables are related. What are the logical relationships between TBL_CourseDetails, TBL_RecoveryServiceDetails and TBL_CourseList? What is the database supposed to accomplish?
    Is TBL_CourseDetails used in your posted DB at all?

  7. #22
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    1. FRM_Registration (Master Form) –Data source: TBL_Student_Parent
    2. FRM_RecoveryServiceDetails (Subform):-- Data source: TBL_RecoveryServiceDetails

    Link Master Fields: student_id
    Link Child Fields: studentid

    3.Combo box (Right of Recovery Service 1)--- data source: TBL_StudentCourse
    4.Combo box (Right of Recovery Service 2)--- data source: TBL_StudentCourse

    5.For these two combo box (drop down), they should be only shown the courses related with the correct student (detail see TBL_StudentCourse)
    6.All the information in subform should be saved into TBL_RecoveryServiceDetails

    please see updated database
    Attached Files Attached Files

  8. #23
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Both comboboxes need this rowsource:

    SELECT distinct [TBL_StudentCourse].[Course Name] FROM [TBL_StudentCourse] Where Student_ID = Forms!frm_Registration.Student_ID ;

    HOWEVER, the design of the subform's table is wrong. Instead of repeating courses horizontally in a student's record, a NEW record should be added for each course, as demonstrated in post #15.
    Last edited by davegri; 05-25-2021 at 12:41 PM. Reason: clarif

  9. #24
    cindyLiu is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    48
    Thank you very much, i will go back to take a look #15

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 07-06-2020, 07:25 AM
  2. Replies: 3
    Last Post: 11-16-2016, 09:24 AM
  3. Replies: 3
    Last Post: 08-02-2016, 08:20 AM
  4. Replies: 2
    Last Post: 09-17-2014, 12:06 PM
  5. Replies: 9
    Last Post: 06-12-2012, 10:22 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