Results 1 to 2 of 2
  1. #1
    Sorbz62 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    15

    How to use Junction Table to populate DB


    Hi guys,

    I'm still getting used to Access and am in the process of writing a Student/ Course one.

    I have a table for Students, who can do many courses and one for courses which can have many students on them, ie many to many. So I have a junction table with the PK from each 2 tables as FK. Am I correct so far?

    Now ..... Without code (coz I am clueless with how to do that) I want just 1 form which I can enter data on with student details and courses they have done on it - maybe tabbed with student details on the main form and each course on a separate tab. Is this possible?

    Each course is carried out many times per year, meaning that I want to be able to add student details and then add new dates for courses or use existing ones, inotherwords have a combo box with existing data I can use but also add new data. Is that possible?

    Thanks in advance!
    Jim

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Simplest way is a form bound to the juntion table with two multi-column comboboxes. Choose student from one combobox, choose course from other combobox. And then a textbox for entering date. Check this tutorial http://datapigtechnologies.com/flash...combobox3.html

    There are other tutorials at that site you may find of interest http://datapigtechnologies.com/AccessMain.htm

    If you want to show more student info then use a form/subform arrangement. Main form bound to student table, subform bound to the junction table. Master/Child link properties of the subform container control will synchronize the related records.

    The tab control as you describe would not be appropriate.
    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. Populating Junction table from form
    By JFo in forum Access
    Replies: 18
    Last Post: 09-05-2011, 09:15 PM
  2. Replies: 11
    Last Post: 08-29-2011, 01:45 AM
  3. Enter Data into a Junction Table
    By darkwan75 in forum Database Design
    Replies: 3
    Last Post: 04-13-2011, 08:55 PM
  4. Updating a Junction Table
    By oleBucky in forum Forms
    Replies: 4
    Last Post: 04-05-2011, 04:59 PM
  5. Junction Table
    By mae3n in forum Database Design
    Replies: 2
    Last Post: 01-15-2011, 10:23 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