Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 July 16th, 2003, 01:26 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Operation must use an updateable query error

Hello. I get the folowing error when I use an insert statement on an Access 2000 database:

Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/BIS355/pgEmpAddII.asp, line 27

I'm using the following vbScript:

<% Dim varCn, varSQL, varCnString, varRs %>

<%
    Set varCn = Server.CreateObject("ADODB.Connection")
    varCnString ="Provider=Microsoft.Jet.OLEDB.4.0;" & _
                  "Data Source=" & Server.MapPath("\bis355\dbEmployees.mdb") &";" & _
                  "Persist Security Info=False"


    varCn.ConnectionString = varCnString
    varCn.Open(varCnString)

    var1 =Request.Form("wtxtFirstName")
    var2 = Request.Form("wtxtLastName")
    var3 = Request.Form("wtxtEMailName")
    varSQL = "INSERT INTO tblEmployees(tblEmployees.fldFirstName, tblEmployees.fldLastName, tblEmployees.fldEmail) values ('" & var1 & "', '" & var2 & "', '" & var3 & "')"

    'set varRS=server.CreateObject("ADODB.Recordset")
    'Set varRS.ActiveConnection = varCn

    varCn.Execute varSQL
    varCn.Close
    varCn = nothing
%>

If anyone can help, I'd appreciate it! Thanks!
 
Old July 16th, 2003, 04:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

http://p2p.wrox.com/topic.asp?TOPIC_ID=136

...but the Soon is eclipsed by the Moon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use an updateable query sandhya12_rcnair ASP.NET 2.0 Professional 3 November 11th, 2008 11:56 AM
Error msg:Operation must use an updateable query . cJeffreywang ASP.NET 2.0 Basics 2 April 27th, 2008 02:10 AM
Operation must use an updateable query darkhalf Access 4 February 29th, 2008 12:50 PM
Operation must use an updateable query hchlebowski ASP.NET 1.0 and 1.1 Basics 1 January 24th, 2006 07:11 AM





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