Update or CancelUpdate without AddNew or Edit


Board Regular
Oct 8, 2008
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?


Well-known Member
Jun 3, 2015
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

Latest member

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...