Results 1 to 6 of 6
  1. #1
    sbart is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    5

    Help with Junction Tables


    I can't seem to figure this out. I am self taught and doing a project for work. We are in the service repair industry. I have TblCustomers with Customer ID in it and TblTicketInfo with Ticket# in it(details about the ticket that gets filled out by the tech on site).
    This is what I need junctions for:
    Each customer can have multiple jobs on their account. Each job can have multiple Dispatch # on their account. Each Dispatch # results in one ticket #.

    Any suggestions on how to do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sounds like Dispatch # and Ticket # are really the same thing.

    Advise no spaces and special characters/punctuation (underscore is exception) in naming convention. Better would be DispatchNum or Dispatch_Num.
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    See this free tutorial

  4. #4
    sbart is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    5
    I forgot about spaces and symbols Thanks. When someone calls in, service dept assigns a disbatch number. Then the field tech assigns a ticket number that they have onhand. I know I need junction table between customer and ticket info to get in the job #s, Disbatch #s and Ticket #s.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Each customer can have multiple jobs on their account. Each job can have multiple Dispatch # on their account. Each Dispatch # results in one ticket #.
    Sounds to me like several one to many relationships.

    1 customer can have many jobs and one job has one customer ==> 1 to many relationship

    1 job can have many dispatch numbers and one dispatch number is for one job (account) ==> 1 to many relationship

    1 dispatch number has one ticket number and one ticket number has one dispatch number ==> 1 to 1 relationship


    Why do you think you need a junction table?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Note correct spelling of dispatch.

    Dispatches table has JobID as foreign key. Tickets table has DispatchID as foreign key. The link between customer and ticket is through dispatch through job.
    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. Populate Junction Table related to 3 Tables
    By Daoud1987 in forum Access
    Replies: 5
    Last Post: 12-11-2013, 12:13 PM
  2. Data entry form with three junction tables?
    By justgeig in forum Forms
    Replies: 5
    Last Post: 08-13-2013, 04:23 PM
  3. Replies: 10
    Last Post: 05-29-2013, 11:39 AM
  4. Replies: 10
    Last Post: 07-12-2011, 11:09 PM
  5. Importing from Excel and Junction tables
    By fatalmusic in forum Import/Export Data
    Replies: 0
    Last Post: 04-07-2011, 07:11 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