E
Esperanza
Hello ASP Expert,
I just would like to delete a record in a table.
Any Idea ??
Thanks in advance !!
Esperanza
I got the error message :
The application is using arguments that are of the wrong type, are out of
acceptable range, or are in conflict with one another.
Or the error message:
The operation requested by the application is not supported by the provider
'------------------------CODE-----------------------------------------------
------------
<body>
<!-- #INCLUDE FILE = "FonctionsConn.asp" -->
<%
dim objConn, objRS
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")
dim intIndex
objConn.Open chaineConnRapports
objRS.Open "SELECT * FROM Document WHERE ID_DOC LIKE 'PaCh'", objConn,
adOpenDynamic, adLockOptimistic, adCmdTable
'objRS.Open "SELECT * FROM Document WHERE ID_DOC LIKE 'PaCh'", objConn
While not ObjRS.eof
response.write "Document :" & objRS("ID_DOC")
objRS.delete
objRS.MoveNext
Wend
objRS.Close
objConn.Close
Set objRS = Nothing
set objConn = Nothing
%>
I just would like to delete a record in a table.
Any Idea ??
Thanks in advance !!
Esperanza
I got the error message :
The application is using arguments that are of the wrong type, are out of
acceptable range, or are in conflict with one another.
Or the error message:
The operation requested by the application is not supported by the provider
'------------------------CODE-----------------------------------------------
------------
<body>
<!-- #INCLUDE FILE = "FonctionsConn.asp" -->
<%
dim objConn, objRS
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")
dim intIndex
objConn.Open chaineConnRapports
objRS.Open "SELECT * FROM Document WHERE ID_DOC LIKE 'PaCh'", objConn,
adOpenDynamic, adLockOptimistic, adCmdTable
'objRS.Open "SELECT * FROM Document WHERE ID_DOC LIKE 'PaCh'", objConn
While not ObjRS.eof
response.write "Document :" & objRS("ID_DOC")
objRS.delete
objRS.MoveNext
Wend
objRS.Close
objConn.Close
Set objRS = Nothing
set objConn = Nothing
%>