Results 1 to 6 of 6
  1. #1
    Akitt23 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    2

    Junction Table\

    Hi Guys,

    I am new to this forum so any help would be very much appreciated.

    I have 3 tables:

    Candidates
    Event
    Junction table

    I am using the junction table to provide a link between candidates and events.

    My aim is to produce a form that can select an event and then select a candidate and assign them to an event.

    A candidate can be apart of multiple events.

    I am struggling on how to create the form and i have no idea where to start!

    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,953
    Use a form/subform arrangement. Options:

    1. main form bound to Events, subform bound to Junction, combobox to select candidate

    2. main form bound to Candidates, subform bound to Junction, combobox to select event

    or a single form bound to Junction with two comboboxes to select candidate and event
    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
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    I hope your Junction table has a more meaningful name (like SchedToAttend).

    June's option 1 is the right one for your specific question, if you are already confused.

    There are also some more advanced interface options available:

    4. Main form bound to Event. Left Listbox 1 of all candidates currently assigned to the event (source is Junction table). Right Listbox 2 of all candidates available to attend (source is candidates table, minus any candidates in Listbox 1, minus any candidates with scheduling conflicts). Double-click on candidate in right box to assign to event, doubleclick on candidate in left box to remove from event. (I usually also have four buttons for add all, add selected, remove selected, remove all.) This method requires some VBA and SQL knowledge, but it makes for a great and very convenient user interface.

  4. #4
    Akitt23 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    2
    Thanks for the quick response!

    I will try the first option and let you know how it goes

    The advanced option looks very user friendly. Do you have a sample database Dal?

    Thanks for you time

  5. #5
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Unfortunately my working db with that interface would take way too much 'splainin.

    I'll have to simplify it a bit, and post as a sample, when I get the time.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,953
    Another recent thread on syncing two listboxes https://www.accessforums.net/program...2-a-39302.html
    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: 5
    Last Post: 08-20-2013, 07:26 PM
  2. Junction Table
    By troachjr in forum Database Design
    Replies: 1
    Last Post: 03-08-2013, 02:10 AM
  3. Junction Table ?
    By KCC47 in forum Access
    Replies: 1
    Last Post: 02-19-2013, 10:19 AM
  4. Junction Table
    By snowboarder234 in forum Access
    Replies: 11
    Last Post: 04-18-2012, 09:31 AM
  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