Results 1 to 6 of 6
  1. #1
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55

    Combo Box on Main Form

    I have a combo box on my main form. Main Form is titled Student Data Entry with respective personal data for said student. This combo box has the class pertinent info organized and sorted in a different table title Scheduled Courses. They have an autonumber Primary Key with a respective ID provided against each course. The combo box points to the table so it draws all the listings of the respective courses. I have a sub form built underneath it to populate the course data



    When I get new students in, or I want to modify said student's course schedule I want the subform to show the course they are assigned to. I can get the combo box to save that Course ID but I can't get the subform to populate it. I am missing the connection somehow. Point me in the right direction?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Need to review form/subform structure. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55

    DB

    Registar Database Operations San.zip

    Attached is a sanitized db with the subform shown.

    I would like the dropdown of schedule Id to populate the subform at the very bottom with the respective dates.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    SSN in Booking table is linked to RoomNum in StudentData table.

    Why is all that student info duplicated into Booking?

    Rooms table should not link to both Booking and StudentData.

    RoomNum should not be the primary key in Booking table, BookingID should.

    Can room number be repeated between buildings - will there be a room 1 in each building? Don't save RoomNum and Bldg#, save Room ID.

    Advise no spaces and special characters/punctuation (underscore is exception) in naming convention. Better would be BldgNum or Bldg_Num.

    There is no Student Data Entry form, there is Soldier Data Entry.

    The Master/Child Links properties are not set for the CourseReservation subform.
    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
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    Quote Originally Posted by June7 View Post
    SSN in Booking table is linked to RoomNum in StudentData table.

    Why is all that student info duplicated into Booking?

    Rooms table should not link to both Booking and StudentData.

    RoomNum should not be the primary key in Booking table, BookingID should.

    Can room number be repeated between buildings - will there be a room 1 in each building? Don't save RoomNum and Bldg#, save Room ID.

    Advise no spaces and special characters/punctuation (underscore is exception) in naming convention. Better would be BldgNum or Bldg_Num.

    There is no Student Data Entry form, there is Soldier Data Entry.

    The Master/Child Links properties are not set for the CourseReservation subform.

    Ok I corrected the link SSN In RoomNum in StudentData

    The Student Info is Duplicated in Booking so I can hold rooms to students during their attendance. Is there an easier way to do this?

    I removed the link between Rooms tbl and Student Data

    I made RoomNum the new PK

    Yes the room number can be repeated between buildings. I used a combine function in excel to marry the building with the room to look like this... 698 (BLDG) 101 (ROOM) into a combined form 698101

    I changed the naming convention as suggestd with the underscores

    You are correct I meant Soldier Data Entry

    Not sure where or what to set the properties for the CourseReservation subform.


    Thanks for your help... I am getting there.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Should only save student ID (SSN or whatever is PK in student table) into booking table, not all their related info.

    The Master/Child Links are properties of the subform container control and are on the Data tab of Properties Sheet.
    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.

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

Similar Threads

  1. Replies: 9
    Last Post: 01-13-2015, 07:30 AM
  2. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  3. Replies: 1
    Last Post: 04-14-2014, 01:38 PM
  4. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 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