Hola, agradecería mucho si pueden orientarme con una aplicación flash que hace consultas a una db por asp(sin broncas), pero al intentar escribir a la db a través de asp me muestra un error, el código del asp para "escribir" es el siguiente:
<%
name = Request.Form("wname")
email = Request.Form("wemail")
company = Request.Form("wcompany")
thecomment = Request.Form("wthecomment")
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("/sql_guestbook/guestbook.mdb")
conn.Open DSNtemp
'name = "true"
'email = "true"
'company = "true"
'thecomment = "true"
SQLstmt = "INSERT INTO guestbook (name,email,company,thecomment)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & name & "',"
SQLstmt = SQLstmt & "'" & email & "',"
SQLstmt = SQLstmt & "'" & company & "',"
SQLstmt = SQLstmt & "'" & thecomment & "'"
SQLstmt = SQLstmt & ")"
Set RS = conn.execute(SQLstmt)
Conn.Close
set conn = nothing
response.write("Record is registrated. Please close this windows")
%>
las variables:wname,wemail,etc...las envío desde flash con LoadVariables...
El error que muestra es:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][Controlador ODBC Microsoft Access] La operación debe usar una consulta actualizable.
/foro/writedb.asp, línea 29
Por su atención de antemano Gracias.
Manuel