Results 1 to 2 of 2
  1. #1
    Carlie017 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2017
    Posts
    16

    Table relationships - multipule records in table b relating to one record in table a

    I have a table "tblHeavyMaintenanceRegister" which records machine repairs, I also have another table "tblPreInspection" which records the per-accessed condition on the machine prior to repair. This then will generate a report "rptPre-Inspection" I want to be able to select the repair and display the machine details (from a Job Number entered on "tblHeavyMaintenanceRegister") and records from "tblPreInspection".



    To enter the records, I want a form with a combo box to select the existing machine repair job from "tblHeavyMaintenanceRegister" and a sub-form to enter the per-assessed condition into "tblPreInspection". I'm really not very good with Access relationships and I can't get them to link so that I'm able to enter multipule records into "tblPreInspection" table for one repair record in the "tblHeavyMaintenanceRegister" table.

    Currently the repairs have an auto-number "JobID" as the primary key in the "tblHeavyMaintenanceRegister" table and and auto-number "JobNumberID" in the "tblPreInspection" these are linked but Access doesn't allow a one-to-many relationship, only a one-to-one.

    I'm not sure if I have the linked fields incorrect or something else is a miss?

  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,815
    JobNumberID cannot be autonumber, it should be just a number (long) type.
    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: 2
    Last Post: 03-16-2017, 05:50 AM
  2. Relating two records from the same table
    By bleyden in forum Access
    Replies: 1
    Last Post: 04-12-2016, 04:01 AM
  3. Replies: 1
    Last Post: 10-29-2014, 03:44 AM
  4. Table Relationships w/ Related Record error
    By Dave D in forum Database Design
    Replies: 17
    Last Post: 07-16-2014, 12:50 PM
  5. Replies: 1
    Last Post: 12-31-2012, 12:48 PM

Tags for this Thread

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