Ver Mensaje Individual
Antiguo 06-may-2008, 10:37   #1 (permalink)
Chuy
Chuy ha deshabilitado el karma
 
Fecha de Ingreso: mayo-2005
Mensajes: 14
update en tabla .vfp

hola a todos
quiero actualizar un registro de mi tabla pero me marca :
Tipo de error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor.

me podran ayudar para ver cual es el detalle ?



Código HTML:
<% Set oConn=Server.CreateObject("ADODB.Connection") %>
     <% oConn.Open="Driver={Microsoft Visual FoxPro Driver}; SourceType=DBF; DBQ=" & Server.Mappath("datos/2008/comp505.dbf")%> 
 <%sSQL="update " & Server.Mappath("datos/2008/comp505.dbf") & " SET fechahorar='" & now() &"' WHERE pref='" & pref1 & "' and folio='" & folio1 & "'"%>
<%set RS = oConn.Execute(sSQL)%>
Chuy está desconectado   Responder Citando