Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Join Date
    May 2022
    Posts
    11


    Quote Originally Posted by pbaldy View Post
    Is it editable directly in the table? Are you adding all the required fields? If it's a linked SQL Server table, does it have a primary key set?
    After restarting my PC the table now appears to be editable, but the issue with replicating the records still remains.

    SIF TEST V2.1.6.accdb.zip

    I've created a button to duplicate my main record, and the information in 4 related junction tables.
    Unfortunately, only 3 out of 4 of these junction tables are having their information duplicated.


    I am not sure why this is the case, as all 4 segments of code are the same (apart from their variables being changed).
    They should all work.


    I have included a cut down version of the database with some filler data. If you could take a look I would really apreciate it.


    The issue is on the form "DISPLAY_SoftwareConfigurations". The code is an on_click event for the button "Button_Duplicate"
    (WIP: Duplicate & Increment Record).


    To replicate my issue, you would first select a configuration from the dropdown menu, (select config 1.0.0.0 as this one has associated records in all 4 categories).
    Then press the duplicate button. You will notice the new duplicated record only has related records in the first 3 tabs, and not the 4th.


    I have tried to diagnose the issue but to no avail, any insight would be greatly apreciated.


    Cheers.

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You've specified the wrong field here:

    WHERE EquipmentsConfigId = 75

    so no records ever meet the criteria.

    I'd also recommend:

    http://www.baldyweb.com/OptionExplicit.htm

    You've mistyped a variable in that code but get away with it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    Join Date
    May 2022
    Posts
    11
    Quote Originally Posted by pbaldy View Post
    You've specified the wrong field here:

    WHERE EquipmentsConfigId = 75

    so no records ever meet the criteria.

    I'd also recommend:

    http://www.baldyweb.com/OptionExplicit.htm

    You've mistyped a variable in that code but get away with it.
    OMG! This was the issue, I can't believe I missed it.
    Thank you so much.

    Original issue and all follow-up issues are solved for this thread now.

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help! We've all done it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-28-2018, 02:24 PM
  2. Replies: 1
    Last Post: 06-06-2016, 06:05 PM
  3. Replies: 5
    Last Post: 01-11-2013, 03:54 AM
  4. Replies: 5
    Last Post: 12-14-2012, 04:21 PM
  5. Replies: 5
    Last Post: 02-02-2012, 06:42 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