Microsoft Knowledge Base Email Alertz

KBAlertz.com: When you try to edit a record that has an expression on a data access page, you receive the following error message A value could not be saved into the data source's '' field. Operation failed with a status of 0. Discard changed value?

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 295213 - Last Review: September 27, 2006 - Revision: 4.4

You cannot edit or delete a record on a data access page

This article was previously published under Q295213
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

On This Page

SYMPTOMS

When you try to edit a record that has an expression on a data access page, you receive the following error message
A value could not be saved into the data source's '<FieldName>' field.
Operation failed with a status of 0.

Discard changed value?
where FieldName is the name of the field that you are editing.

When you try to delete a record, you receive the following error message:
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

CAUSE

The expression is evaluated when the underlying recordset is modified. These errors occur if the expression is not valid.

RESOLUTION

When you edit or delete records, make sure that you have valid values in the expression that can be evaluated correctly. For example, if the expression divides by a field value, make sure that the value is not zero.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.

  1. Start Microsoft Access, and then open the sample database Northwind.mdb.
  2. In the Database window, click Pages under Objects, and then click New.
  3. In the New Data Access Page dialog box, click Design View, and then click OK.
  4. Right-click and then drag the Products table from the Field List to the unbound section on the page. When you are prompted, click Columnar.
  5. If the toolbox is not already visible, click Toolbox on the View menu. Add a new text box to the page.
  6. Right-click the text box, and then click Element Properties.
  7. On the Data tab, type the following expression in the Control Source property:
    =ProductID/UnitPrice
  8. On the View menu, click Page View.
  9. Click New on the navigation bar on the page to move to a new record.
  10. Type TEST in the ProductName field on the page, and then click Save on the navigation bar.
  11. Type TEST in the QuantityPerUnit field on the page, and then press the TAB key. Note you receive the first error message that is mentioned in the "Symptoms" section of this article.

APPLIES TO
  • Microsoft Office Access 2003
  • Microsoft Access 2002 Standard Edition
Keywords: 
kbprb kberrmsg kbnofix KB295213
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Gary H - garyh NOSPAM-AT-NOSPAM peninsuladigital.com Reported as Irrelevant  
Written: 12/22/2004 1:16 PM
"A value could not be saved into the data source's". I receive this message throughout just one particular website that I log into with a user name and password using IE 6.0 If I use another computer and log in using the same user name and password and the same version of IE, there is no problem. It is unique to my computer and only to the one website. I've tried everything I could think of with no result.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please