Wrox Programmer Forums
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2003, 09:41 PM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database update access

Hi there...i am haveing a problem with my Web page....i use this code to update my database records.....

<%Sub doit()
conn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("../database/users.mdb") & ";"
Set rs = Server.CreateObject("ADODB.Recordset")
SQLStmt = "update tbl_authors set score='" & Server.HTMLEncode(teliko) & "' where ID=" & str_authors_ID
SQLStmt = SQLStmt & request.form("ID")
rs.Open SQLStmt, conn, 2, 1
response.redirect("alldone.asp")
%>
<%End Sub%>

....but i am getting this message :
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query

It worked ok befor some days but when i reinstall my windows i am trying to use my web page and it doesnt work!
I am useing Windows Xp profession with IIS 5.1!

...i wonder if anyone could help me! Thanks!



 
Old September 23rd, 2003, 11:26 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this and see what happens.

rs.Open SQLStmt, conn, 3, 3






Similar Threads
Thread Thread Starter Forum Replies Last Post
!!HELP! trying to update an Access database brawny4 VB Databases Basics 4 April 24th, 2007 02:07 PM
Help!!! Cannot Update, Delete from Access database dreamzentrue ADO.NET 7 November 3rd, 2005 06:11 PM
Access database won't update? jula Access ASP 8 September 26th, 2004 05:46 PM
Allow SQL to update an Access database levinho Classic ASP Databases 7 November 11th, 2003 08:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.