Update or CancelUpdate without AddNew or Edit

CPGDeveloper

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

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Micron

Well-known Member
Joined
Jun 3, 2015
Messages
1,847
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,032
Messages
5,484,284
Members
407,436
Latest member
Szafranski

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top