Cannot add without committing row first

Accessible92866

Registered User.
Local time
Today, 13:00
Joined
Nov 4, 2008
Messages
11
I've written a db in Access 2007 to track enrollment in our safety training classes. I have a main form for the basic class information (date, instructor, location, etc.) and a subform for students enrolled in that class, connected by the ClassID field (an autonumber in the Classes table, a long integer in the Attendance table).

When I want to add a new class using the form and attempt to enter the date of the class, it won't generate a new autonumber and won't allow me to do it, giving 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."

It doesn't seem like it should be difficult just to add a new class. Can anyone help? It's been driving me crazy for days.

Thanks in advance,
Accessible in California
 
This error usually pops up when you try to enter a (child) record in the subform before there is a corresponding (parent) record on the main form. Is that the situation here?
 
Any resolution to this problem as I have the same one?
 

Users who are viewing this thread

Back
Top Bottom