gebruiker53
Guest
- Lid geworden
- 8 mrt 2007
- Berichten
- 56
Ik wil in een database in een veld (in de ene kolom) vullen en dan twee andere kolommen, als daar een waarde in staat verwijderen. Weet iemand hoe ik dit kan doen?
Het gaat om het volgende script
(alles uit gecomment)
en hier staat ook nog iets wat van belang is
Ik hoop dat iemand me kan helpen. alvast bedankt
Het gaat om het volgende script
(alles uit gecomment)
Code:
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="Ople_datum" value="StartDatum"onClick="this.form.Ople_Startaanvraag.value='';onClick="this.form.Ople_periode.value='';"<% 'If RS("Ople_Start")<>"1-1-2001" and RS("Ople_start")<>"" then %> checked<%' End If %>> <input type="text" name="Ople_Start" value="<% 'If RS("Ople_Start")<>"1-1-2001" then %><%=' RS("Ople_Start") %><% 'End If %>" size="40" Class="text"></td>
<td><a style="cursor: hand;" onMouseOver="showDetails('popupCode',null,null)" onMouseOut="startTimer(this)"><img src="../img/icons/help2_ico.gif" alt="" width="16" height="16" hspace="3" border="0"></a><TABLE BGCOLOR="#FFFF99" Width="90" CLASS="tooltip" ONMOUSEOVER="stopTimer()" ONMOUSEOUT="startTimer(this)" BORDER=0 ID="popupCode" STYLE="border:1px gray solid;" cellpadding="1" cellspacing="1"><TR><td CLASS="tooltiptxt">Geef de startdatum (dd-mm-yyyy)</td></TR></TABLE></td>
</tr>
<tr>
<td><input type="radio" name="Ople_datum" value="Periode" onClick="this.form.Ople_Startaanvraag.value='', this.form.Ople_Start.value='';"<% 'If RS("Ople_Periode")<>"" then %> checked<% 'End If %>> <input type="text" name="Ople_Periode" value="<% 'If RS("Ople_periode")<>"" then %><%= RS("Ople_Periode")%> <% 'End If %>" size="40" Class="text"></td>
<td><a style="cursor: hand;" onMouseOver="showDetails('popupCode',null,null)" onMouseOut="startTimer(this)"><img src="../img/icons/help2_ico.gif" alt="" width="16" height="16" hspace="3" border="0"></a><TABLE BGCOLOR="#FFFF99" Width="90" CLASS="tooltip" ONMOUSEOVER="stopTimer()" ONMOUSEOUT="startTimer(this)" BORDER=0 ID="popupCode" STYLE="border:1px gray solid;" cellpadding="1" cellspacing="1"><TR><td CLASS="tooltiptxt">Geef de periode dat de opleiding zal starten (maand yyyy)</td></TR></TABLE></td>
</tr>
<tr><td><input type="radio" name="Ople_datum" value="ElkeDatum" onClick="this.form.Ople_Start.value='';this.form.Ople_Start.value='';"<% 'If RS("Ople_startaanvraag")<>"" then %> checked<% 'End If %>> <input type="text" value="Op aanvraag" size="40" readonly class="text"></td></tr>
</table>-->
en hier staat ook nog iets wat van belang is
Code:
if opid>0 then
SQL = "UPDATE OpleList SET "
for each field in Request.Form
if not left(field,4) = "Comp" and not field="Ople_Start" and not field="Ople_datum" then
SQL=SQL&field&"='" & ReplaceBody(request.form(field)) & "', "
elseif field="Ople_Start" and request.form("Ople_Start")<>"" then
SQL=SQL&field&"='" & DateFormat(request.form(field)) & "', "
elseif field="Ople_Start" and request.form("Ople_Start")="" then
'dateformat 01-01-2001 vervangen door null
SQL=SQL&field&"='" & "" & "', "
end if
Next
SQL=left(SQL, len(SQL)-2)
SQL=SQL&" WHERE Ople_ID="&cstr(opid)
ConnBasis.Execute(SQL)
response.redirect "opleidingen.asp?action=wijzig&opid="&cstr(opid)&"&id="&id&"&saved=yes&ord="&ord&""
end if
Ik hoop dat iemand me kan helpen. alvast bedankt