Article ID: 140309 - Last Review: December 9, 2003 - Revision: 2.0 BUG: Recordset Update Error Differs Between 16-Bit and 32-Bit
This article was previously published under Q140309 On This PageSYMPTOMS
When running Update method on a recordset, the error message displayed for
16-bit Visual Basic and 32-bit Visual Basic are completely different.
However, the cause of the error is the same. You didn't use the AddNew or
Edit method before trying to save changes to a record.
16-Bit Error
Run-time error '3426': The action was canceled by an associated object. 32-Bit Error
Run-time error '3020': Update or CancelUpdate without AddNew or Edit. CAUSE
The 16-bit error message is actually a Jet version 2.5 error message.
WORKAROUND
To workaround this bug, use the Edit method before the Update method, prior
to saving the changes to a recordset, as shown below:
STATUS
Microsoft has confirmed this to be a bug in the 16-bit version of Visual
Basic 4.0. We are researching this problem and will post new information
here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONSteps to Reproduce the Error in Visual Basic 4.0 16-Bit
Steps to Reproduce the Error in Visual Basic 4.0 32-Bit
REFERENCES
For additional information on Visual Basic 4.0 error messages, please see
the following article in the Microsoft Knowledge Base:
136250
(http://support.microsoft.com/kb/136250/EN-US/
)
LONG: List of Trappable Errors for Visual Basic 4.0
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
