Results 1 to 8 of 8
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    The value cannot be added to this new row until the row has been committed.


    The value cannot be added to this new row until the row has been committed.
    a. This is my input form for Receipts. The problem is not on my running app.
    b. I work on a copy as always. I do not know what I changed for the error to appear on the copy.
    c. Once before I set Recordset Type on the form and query to "Dynaset (Inconsistent Updates)" Then a new error comes up.
    d. I copy the original again and then the error comes up again on the copy, after I did some work on the page.
    e. The Payment form is set up exactly the same but does not return the errors. I copied the Payment form over the receipt form and changed the links of the fields then the errors reappear.
    f. I surfed quite a bit and try to learn what the issue is but no luck yet.
    g. The error happens when I click on the sub form combo box displaying "Debtors".
    Click image for larger version. 

Name:	221221a.png 
Views:	29 
Size:	128.5 KB 
ID:	49340

    Another error on the Receipt form of the copy I work on.
    The payment form has the exact field and is linked to a query exactly the same way, and the Payment form does not error.
    The error happens when I click on the combo box displaying "Absa Oakfield".
    Click image for larger version. 

Name:	221221b.png 
Views:	29 
Size:	24.7 KB 
ID:	49341
    Dit maak my tiete lam.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    You must save the master record before you can add child records.
    and sometimes any needed parts of the join.

  3. #3
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    My app has over 150 main forms, of which 100 got sub forms. As you can see there is a Save button on every form. Even when I click on save after capturing the master record, it does not solve the error. But I have no "save action" on the other 100 forms with sub forms. As far as I know this is the only form where I experience the error. I try to learn what the solution is here. I experienced it before and found fixes without knowing what went wrong. Seems like I will struggle here for more hours and then find a fix without learning what the cause was.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,007
    Well the error message states what the problem is?
    I would inspect what you think is the correct key to the one table and what the one table key actually is?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    The error "The value cannot be added to this new row until the row has been committed." indicates you're trying to update a field in a new record that hasn't been written to the disk yet. Have you tried to set a waypoint in the first rule of the code that is executed and step through the code to see which line generates the error?

  6. #6
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thanks. I will test and report back. I wonder if Flemish is your main language, mine is Afrikaans which is probably 90% the same.

  7. #7
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Yep, ik ben een Vlaamse, geboren niet ver van Gent en woon niet ver van Antwerpen

  8. #8
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Aangename kennis meneer. Ek is nou 60 maar op skool het ek n vriend Koen De Ruyk gehad wat van Belgiee gekom het, met sy ouers en familie. My voor ouers was seker Hollanders, maar ek was nog nooit uit Afrika nie.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-11-2020, 11:59 AM
  2. new record is added against my will
    By mar7632 in forum Access
    Replies: 3
    Last Post: 02-18-2019, 05:37 AM
  3. Replies: 0
    Last Post: 10-23-2017, 08:53 AM
  4. Replies: 5
    Last Post: 05-15-2016, 12:06 PM
  5. Value cannot be added
    By mr_right in forum Access
    Replies: 2
    Last Post: 03-26-2013, 12:56 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