Results 1 to 4 of 4
  1. #1
    Bentley is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    50

    Duplicate Records in a Subform

    Hello,



    I have a work order form set up and I am using a subform as well to track the inspection of the work order. However, when I set up a new work order, I get duplicate records in the subform... Can anyone advise why this is happening? When I beta tested the form, it appeared to be working correctly... I do not have any macro's or VB code on the form.

    Thanks in advance,

    Ben

  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
    52,930
    Is form RecordSource a query? Provide the SQL statement.

    What did you do to Beta test, actually enter records and that was working properly? What has changed?
    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
    Bentley is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    50
    I beta tested by adding records in the main form and subform. Now, when we use the DB, duplicate records show in the sub form and in corresponding tables. below is the SQL for the subform QRY used in the main form.

    SELECT TBL_QC_Review.Status_ID, TBL_QC_Review.WorkOrder, TBL_QC_Review.[Quality ReviewDTE], TBL_QC_Review.ApprovedDTE, TBL_QC_Review.Inspector, TBL_QC_Review.ReturnedtoEngDTE, TBL_QC_Review.SenttoPlanning, TBL_QC_Review.EngResubmitted, TBL_CWPData.PermitREQ, TBL_QC_Review.Comments, TBL_QC_Review.Shop, TBL_QC_Review.RFI1, TBL_QC_Review.RFI2, TBL_QC_Review.RFI3, TBL_QC_Review.RFI1answered, TBL_QC_Review.RFI2answered, TBL_QC_Review.RFI3answered, TBL_CWPData.Section, TBL_CWPData.Unit, TBL_CWPData.Engineer, TBL_CWPData.ITPRequired, TBL_CWPData.ITPCreated, TBL_CWPData.[Work Desc], TBL_CWPData.CRCGroup
    FROM TBL_CWPData INNER JOIN TBL_QC_Review ON TBL_CWPData.[Work Order_ID] = TBL_QC_Review.[WorkOrder];

  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
    52,930
    Why do you have both tables in form RecordSource?

    Should be main form bound to TBL_CWPData and subform bound to TBL_QC_Review.

    However, doesn't seem to explain why there would be duplicate records in tables.

    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-08-2017, 09:04 AM
  2. Replies: 10
    Last Post: 09-20-2016, 03:25 PM
  3. Duplicate Records Form and Subform
    By Michael Hilton in forum Access
    Replies: 0
    Last Post: 10-29-2013, 02:00 PM
  4. Replies: 2
    Last Post: 05-02-2012, 09:16 PM
  5. Duplicate record in Subform
    By j2curtis64 in forum Forms
    Replies: 3
    Last Post: 04-13-2011, 03:58 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