Subject: Windows XP ( +access 2003) problem?
Posted By: belete Post Date: 10/9/2004 6:26:15 PM
Hi experts!

when I tried to update/insert a record in a table I got the
folowing an error written below. There is no error in my code. The same code was working on windows 2000 pro. what could be the problem in windows xp pro???????

Colud you please help me. Thank you in advance!

Server Error in '/' Application.
--------------------------------------------------------------------------------

Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

 


--------------------------------------------------------------------------------
 


Reply By: dhay1999 Reply Date: 10/11/2004 9:19:51 AM
that usually means that there is no primary key defined.  Jet requires a PK for positioned updates.  If you are trying to update from a query, the underlying/updated table is the one that will require the PK.


Go to topic 20403

Return to index page 748
Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739