Microsoft
Software
Hardware
Network
Question : Problem in Update Statement
Hello experts, i am trying to update a record in my Access 2003 database through ASP.
it is giving error.
my asp page (vb script) and error message shown by server are given below,
please help, whats the problem.
Thanks.
<%
dim SQL
set Con = Server.CreateObject("ADODB
.Connectio
n")
Con.ConnectionString="Prov
ider=Micro
soft.Jet.O
LEDB.4.0; Data Source='C:\Documents and Settings\Administrator\Des
ktop\ASP Work\Database\Studs.mdb'"
Con.Open
sql="Update Student SET Class ='abc' where rollno = 101"
response.write sql
Con.execute sql 'This is Problem (line no 13)
'response.write(" Ok")
response.expires = -1
%>
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/aspwork/updaterecord2.asp
, line 13
Answer : Problem in Update Statement
take a read of
http://support.yessoftware
.com/kb_ar
ticle.asp?
article_id
=4
it has helped me out with this sort of problem many times
Random Solutions
How secure is the Access 2007 database password?
Move Mailboxes/Public Folders from Exchange 2003 to Exchange 2010
Access 2007 many-to-many relationship
How can I create a macro, to delete all forms and reports in a .adp project (Microsoft Access 2000)?
WCF service error when trying to connect to SQL Request for the permission of type 'System.Data.SqlClient.Sql<wbr />ClientPerm<wbr />ission, System.Data
DFS not replicating certain files
Overlap CTreeCtrl and multiline CEdit in dialog
SQL Server problem with date format
How to revert back the saved file in MS word?
How to make an automated roster using excel