473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 3020 Update or CancelUpdate without AddNew or Edit (Form Error)

Access 2002 MDB -> SQL Server 2000 - ODBC Linked tables.

B4 we start, this is not occurring in a recordset operation and yes I
googled, even found my own fix, which I already use
(http://tinyurl.com/2e8os) but in one particular form it's getting
worse, sometimes accompanied by a "Another user has modified the data"
or something or that the form's values have reverted back to their old
values before my workaround in the Form_Error event has fired. Also a
new error number with the same message but the number being in the
minus 2 billion region

All Validation code that was BeforeUpdate on controls has been moved
to AfterUpdate and ControlName=Con trolName.OldVal ue put in place of
the Cancel=True and .Undo.

The only BeforeUpdate event now is the form itself, which it isn't
getting that far either. The form and controls have been recreated
with the code copied in to rule out form corruption. The underlying
query has been changed to a SQL view although I don't think the data
source has a baring on it as others have had the same problem using
Jet databases.

I've also ruled out
http://support.microsoft.com/default...b;en-us;179616 as a
possible cause as although I have some timer code on my main menu
form, no updates are done, I even got the problem with the timers
turned off as well.

Can anyone shed any new light on this?

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #1
0 3925

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4618
by: Paul | last post by:
I have an Access 2000 database with a form that is giving me some major headaches. When you open the form, it displays all records and allows editing, but has AllowAdditions set to False so that the user has to use my New Record button. When you click the New Record button, the form presents a new record for editing. My client wants to use the Escape key to cancel changes to new or existing records. On existing records, Access already...
2
14172
by: JSMiami | last post by:
I have a form that has the navigation buttons enabled. I have a procedure that runs every time a new record is loaded (Current Event). This procedure performs a SELECT from a table (different from the one that serves as a source to the form) so that I can prepopulate the values of an unbound list box. I am getting this error: Update or CancelUpdate without AddNew or Edit Please help. Thanks
1
1722
by: JMCN | last post by:
hello- i received an runtime error message: You tried to call Update or CancelUpdate or attempted to update a Field in a recordset without first calling AddNew or Edit. (Error 3020). when i look through my code again, i thought that i called the Edit methode before i tried to update the field. thanks in advance, jung here is the following code:
2
328
by: NewDBGirl | last post by:
I have a multiple-page form for entering info about a project with several sub-forms for sub-projects, notes and tasks. The form and one of the sub-forms each have a combo box to select a record to display, as well as a "last date/time updated" type of field that populates AfterUpdate. What can I do to fix the "Update or CancelUpdate without AddNew or Edit" error? I'm pretty unschooled in code but I have gotten by with macros and...
0
1259
by: Trev | last post by:
Just got this out of an error log: (ready with that Courier font:) > ErrorNo ErrroMessage Occurances > ----------- -------------------------------------------------------------------------------------------------------------- ----------- > -2147352567 ODBC--call failed. ...
4
9405
by: Stephen | last post by:
Hello People, Using MS Access 2003 VBA I get the error 3020 Update or CancelUpdate without AddNew or Edit when I run through the following code. Can anyone help suggest anything to try? Thanks. On Error GoTo delete_failed Dim RS_DEL As DAO.Recordset
0
2866
by: crispywafers | last post by:
Hi, Hope someone can help me out. I have a piece of code I use to update a subforms numbers (Trimester Invoices) if the mainform numbers (School Year Order) change. What is interesting is the code works if I type numbers into the mainform once, but if you accidently mistype something and go back immediately to reenter the number into the same field you get this "update or cancelupdate without addnew or edit" error.
3
2743
by: windandwaves | last post by:
Hi Gurus Does anyone know how I set the error trapping to option 2 in visual basic. I know that you can go to tools, options and then choose on unhandled errors only, but is there a VB command that I can use instead? Cheers Nicolaas
9
3295
by: MrDeej | last post by:
Hello guys! We have an SQL server which sometimes makes timeouts and connection errors. And we have an function witch writes and updates data in 2 tables on this server. When the SQL server error appears it, in 99%, of the cases, works if we just press the play button in VBA debug. Therefor we have maked an error handling which just tryes again. However, as this error handling is difficult to test because of maybe 1 or 2 errors a day, we...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.