Getting 'No value given for one or more required parameters' as an error from both a connection object and a command object whene issuing a delete statement.<br>
Code looks as follows:<br>
<br>
strDeleteSQL = "DELETE * FROM y WHERE (((ws_id) = " & CStr(lngWSID)<br>
strDeleteSQL = strDeleteSQL & " AND ((day_id) = " & CStr(Day) & ");"<br>
<br>
with then either:<br>
<br>
acnWS.Execute strDeleteSQL, lngRecordsAffected, adCmdText Or adExecuteNoRecords<br>
<br>
Or <br>
<br>
Set acmDelete = New ADODB.Command<br>
acmDelete.CommandText = strDeleteSQL<br>
acmDelete.CommandType = adCmdText<br>
Set acmDelete.ActiveConnection = acnWS<br>
acmDelete.Execute<br>
<br>
Can someone enlighten me to what is going wrong.<br>
<br>
James <p>James Culshaw<br><a href=mailto:james_culshaw@activedatasolutions.madasafish.com>james_culshaw@activedatasolutions.madasafish.com</a><br><a href= > </a><br>
Code looks as follows:<br>
<br>
strDeleteSQL = "DELETE * FROM y WHERE (((ws_id) = " & CStr(lngWSID)<br>
strDeleteSQL = strDeleteSQL & " AND ((day_id) = " & CStr(Day) & ");"<br>
<br>
with then either:<br>
<br>
acnWS.Execute strDeleteSQL, lngRecordsAffected, adCmdText Or adExecuteNoRecords<br>
<br>
Or <br>
<br>
Set acmDelete = New ADODB.Command<br>
acmDelete.CommandText = strDeleteSQL<br>
acmDelete.CommandType = adCmdText<br>
Set acmDelete.ActiveConnection = acnWS<br>
acmDelete.Execute<br>
<br>
Can someone enlighten me to what is going wrong.<br>
<br>
James <p>James Culshaw<br><a href=mailto:james_culshaw@activedatasolutions.madasafish.com>james_culshaw@activedatasolutions.madasafish.com</a><br><a href= > </a><br>