Results 1 to 3 of 3
  1. #1
    logikel1 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Suburban Atlanta, GA
    Posts
    2

    "Commit new row" in subform

    I'm using Access 2007 and have a form for fleet vehicles and a subform for repair records. The two are linked on the Vehicle # field. When adding a repair record to the subform, I locate the correct vehicle on the form and all the entered repair records are correctly displayed.



    However, when I add a new record to the subform (repairs table), and type a date in the RepairDate field, I get the message "The value cannot be added to this new row until the row has been committed. Commit the row first, and then try adding the value."

    I've found this problem brought up on several forums, but the only answer I found was "The subform row is being saved without a required field, probably the primary key."

    How do I commit the new row? How do I enter the primary key, which is an autonumber field added when an entry is made in the row?

    Any help is appreciated.


    Kelly

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I have never seen this, but maybe....

    The subform is bound to the table correctly it seems. Is the primary key on the subform? I usually put it on there but make it invisible (leave it visible for debugging purposes). I don't know if that is your problem or not. I assume that the RepairDate is the first field? If so, as soon as you begin typing in it Access will add a new record to the table.

  3. #3
    logikel1 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Suburban Atlanta, GA
    Posts
    2
    Sorry it's taken me so long to reply. It looks like your solution worked. Thanks much...

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

Similar Threads

  1. Replies: 2
    Last Post: 11-04-2011, 02:45 AM
  2. Replies: 8
    Last Post: 08-05-2011, 02:55 PM
  3. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  4. Replies: 1
    Last Post: 03-30-2011, 06:16 PM
  5. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 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