Update or CancelUpdate without AddNew or Edit

CPGDeveloper

Board Regular
Joined
Oct 8, 2008
Messages
106
Hi All~

I have a user that occasionally experiences this error -- "Update or CancelUpdate without AddNew or Edit"

The db I administer has about 20+ end users, split db, front end accde files on each users's desktop.

This error occurs (only occasionally) when he is creating a new entry into our db --

I have that process linked to a 'New' command button. Clicking the button opens a pop-up form, solicits some information from the user, and creates new entries into two tables using the information provided by the user.

My code uses two relatively simple 'INSERT' sql statements. It then determines the 'ID' of the newly created record and after refreshing the form's record source, I use .FindFirst to go to the newly created record.

After creating the record, and then going into another field in said record, does the user experience this error.

Any ideas? I could post the code if that's helpful -- nowhere in my project do I use .Update or .CancelUpdate, but perhaps there's something about editing a newly created record that I'm missing?
 

Micron

Well-known Member
Joined
Jun 3, 2015
Messages
1,742
I take it that you are using a recordset. Without seeing the code I'd just be guessing. The initial thought is that code or user interaction is attempting to update a recordset but the .Update method hasn't been invoked when it should have been. No guarantees, but posting the code is a must do thing I'd say.
 

Forum statistics

Threads
1,077,740
Messages
5,335,956
Members
399,057
Latest member
elada31

Some videos you may like

This Week's Hot Topics

Top