Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/02/2003, 18:33
kazakii
 
Fecha de Ingreso: febrero-2003
Mensajes: 1
Antigüedad: 22 años, 3 meses
Puntos: 0
Pregunta manejo de datos con flash y asp

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


Última edición por kazakii; 03/02/2003 a las 21:25