473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Error '3426' When Updating Database

Here's the code:
Private db As Database, rs As Recordset

Set rs = db.OpenRecordset("Table")

rs.AddNew
'User puts in some stuff in form and hits okay
rs.Update

This stuff works perfectly for the FIRST record only. When I try to add a second one, it gives me the runtime error '3426': This action was cancelled by an associated object.
Any ideas on how to fix this?

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
2 7982
On Wed, 29 Dec 2004 18:27:15 GMT, "Christina Grabe via
AccessMonster.com" <fo***@AccessMonster.com> wrote:
Here's the code:
Private db As Database, rs As Recordset

Set rs = db.OpenRecordset("Table")

rs.AddNew
'User puts in some stuff in form and hits okay
rs.Update

This stuff works perfectly for the FIRST record only. When I try to add a second one, it gives me the runtime error '3426': This action was cancelled by an associated object.
Any ideas on how to fix this?

--
Message posted via http://www.accessmonster.com


Hi
see "PRB This Action was Cancelled by an Associated Object.(3426)"
perhaps, at
http://support.microsoft.com/kb/q189851/

or serach Google for "This Action was Cancelled by an Associated
Object" with the quotes.
"http://support.microsoft.com/kb/q189851/

David


Nov 13 '05 #2
I did those things before posting this and they didn't help much. My recordset was not pointing to a null and Google didn't give me much to go on. HOWEVER, I did get my database working anyway...I just still don' t understand where the issue was in the database. Thanks, though.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #3

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

Similar topics

4
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
2
by: Roald Oines | last post by:
Hi, I'm working on converting several of my Access 97 databases to Access 2002 format (the company's changing from NT 4 to XP and updating Office at the same time), and this one has me stumped....
0
by: Richard Sherratt | last post by:
Something to add to your trivia bank. I've seen previous questions on this error but they've all been for adding new records to the RecordsetClone. I got it trying to edit an existing record. ...
0
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr"...
2
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr"...
10
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
2
by: Jason Huang | last post by:
Hi, I am wondering why use the DataTableMapping in SqlDataAdapter when Updating data. Would someone give me some advice? Thanks for help. Jason
3
by: Reg Verrin | last post by:
I have a program that displays constantly changing prices which it sources from the web once per second. The prices are displayed on a Listbox (not the best choice but there are good reasons for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.