When you ask for help, please try to give as much information as possible. Your question is too broad and doesn't give us a clue as to what you are doing.
Tell us what your problem is, what types of errors, any error messages or information that will give us some idea of what's going on.
As follows is the connection string (I'm using a direct path for now to simplify some things).
I'm using Dreamweaver UltraDev to create a website to display and administer a database of 1 table ('Projects')
The error comes up on the "MM_insertCmd.Execute" line -
"Operation must use an updateable query"
Set MM_insertCmd = Server.CreateObject("ADODB.Command"
MM_insertCmd.ActiveConnection= "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:\Inetpub\
I'm trying to find out what is going on, so I was asking if anyone knew what the difference is between "non-updateable" and "updateable" queries. How would I declare/call an 'updateable query' ?
hmm... I'm just gonna post my code here. Take a look and comment. As I said before, this is VBScript/ASP code that is generated by Dreamweaver UltraDev (Macromedia). I've been doing VB the past few years, and I'm trying to learn ASP. Some of the language is different.
Jason
<%@LANGUAGE="VBSCRIPT"%><%
' *** Insert Record: construct a sql insert statement and execute it
MM_editAction = CStr(Request("URL")
If (Request.QueryString <> "" Then
MM_editAction = MM_editAction & "?" & Request.QueryString
End If
If (CStr(Request("MM_insert") <> "" Then
For i = LBound(MM_fieldsArray) To UBound(MM_fieldsArray) Step 5
FormVal = CStr(Request.Form(MM_fieldsArray(i)))
Delim = MM_fieldsArray(i+2)
If (Delim = "none" Then Delim = ""
AltVal = MM_fieldsArray(i+3)
If (AltVal = "none" Then AltVal = ""
EmptyVal = MM_fieldsArray(i+4)
If (EmptyVal = "none" Then EmptyVal = ""
If (FormVal = "" Then
FormVal = EmptyVal
Else
If (AltVal <> "" Then
FormVal = AltVal
ElseIf (Delim = "'" Then ' escape quotes
FormVal = "'" & Replace(FormVal,"'","''" & "'"
Else
FormVal = Delim + FormVal + Delim
End If
End If
If (i <> LBound(MM_fieldsArray)) Then
MM_tableValues = MM_tableValues & ","
MM_dbValues = MM_dbValues & ","
End if
' redirect with URL parameters
'If (MM_redirectPage = "" Then
' MM_redirectPage = CStr(Request("URL")
'End If
'If (InStr(1, MM_redirectPage, "?", vbTextCompare) = 0 And (Request.QueryString <> "") Then
' MM_redirectPage = MM_redirectPage & "?" & Request.QueryString
'End If
Call Response.Redirect(MM_redirectPage)
End If
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.