Hi,
I am currently working on a simple program that displays records from a MS Access database. I want the user to be able to delete a individual record if they choose to. I get stuck at the point where I need to delete the record. Here is the code I have so far. Any advice would be appreciated.
<--Code Posted Below-->
<p align="center" style="margin-top: 1px; margin-bottom: 1px">
<font color="#FF0000" face="Arial"><b>Telephone Application Maintenance</b></font></p>
<p align="center" style="margin-top: 1px; margin-bottom: 1px"><b>
<font face="Arial" color="#FF0000" size="1">**Once the account has been deleted
it is not retrievable**</font></b></p>
<p align="center"> </p>
<%
SQL = "Select ID, f01, officer, stampdate, custstatus From depapps Order By stampdate"
Set RS = MyConn.Execute(SQL)
Response.Write "<center>"
While Not RS.EOF
Response.Write "<form name=""Update"" method=""Post"">"
Response.Write "<table border=""1"" bgcolor=""#c0c0c0"">"
%>
<div align="center">
<center>
<table border="1" cellpadding="3" width="604">
<tr>
<td width="121" align="left"><b><font face="Arial" size="2">Customer Name</font></b></td>
<td width="122" align="left"><b><font face="Arial" size="2">Account Type</font></b></td>
<td width="99" align="left"><b><font face="Arial" size="2">Opened By</font></b></td>
<td width="99" align="left"><b><font size="2" face="Arial">Date Opened</font></b></td>
<td width="98" align="left"><b><font size="2" face="Arial">Action</font></b></td>
</tr>
<tr>
<td width="121"><input type="hidden" name="id" value="<%=RS("ID")%>"></td>
<td width="122"></td>
<td width="99"></td>
<td width="99"> </td>
<td width="98"></td>
</tr>
<tr>
<td width="121">
<input type="text" name="ca01" size="20" value="<%=RS("f01")%>"></td>
<td width="122">
<input type="text" name="ca07" size="20" value="<%=RS("custstatus")%>"></td>
<td width="99">
<input type="text" name="appdate" size="10" value="<%=RS("officer")%>"></td>
<td width="99">
<input type="text" name="appdate" size="10" value="<%=RS("stampdate")%>"></td>
<td width="98">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="100%"><input type="submit" value="Delete" (((((**HERE IS MY PROBLEM** onClick="this.form.action='do something.asp?method=Delete';"></td>)))))
</tr>
</table>
I am currently working on a simple program that displays records from a MS Access database. I want the user to be able to delete a individual record if they choose to. I get stuck at the point where I need to delete the record. Here is the code I have so far. Any advice would be appreciated.
<--Code Posted Below-->
<p align="center" style="margin-top: 1px; margin-bottom: 1px">
<font color="#FF0000" face="Arial"><b>Telephone Application Maintenance</b></font></p>
<p align="center" style="margin-top: 1px; margin-bottom: 1px"><b>
<font face="Arial" color="#FF0000" size="1">**Once the account has been deleted
it is not retrievable**</font></b></p>
<p align="center"> </p>
<%
SQL = "Select ID, f01, officer, stampdate, custstatus From depapps Order By stampdate"
Set RS = MyConn.Execute(SQL)
Response.Write "<center>"
While Not RS.EOF
Response.Write "<form name=""Update"" method=""Post"">"
Response.Write "<table border=""1"" bgcolor=""#c0c0c0"">"
%>
<div align="center">
<center>
<table border="1" cellpadding="3" width="604">
<tr>
<td width="121" align="left"><b><font face="Arial" size="2">Customer Name</font></b></td>
<td width="122" align="left"><b><font face="Arial" size="2">Account Type</font></b></td>
<td width="99" align="left"><b><font face="Arial" size="2">Opened By</font></b></td>
<td width="99" align="left"><b><font size="2" face="Arial">Date Opened</font></b></td>
<td width="98" align="left"><b><font size="2" face="Arial">Action</font></b></td>
</tr>
<tr>
<td width="121"><input type="hidden" name="id" value="<%=RS("ID")%>"></td>
<td width="122"></td>
<td width="99"></td>
<td width="99"> </td>
<td width="98"></td>
</tr>
<tr>
<td width="121">
<input type="text" name="ca01" size="20" value="<%=RS("f01")%>"></td>
<td width="122">
<input type="text" name="ca07" size="20" value="<%=RS("custstatus")%>"></td>
<td width="99">
<input type="text" name="appdate" size="10" value="<%=RS("officer")%>"></td>
<td width="99">
<input type="text" name="appdate" size="10" value="<%=RS("stampdate")%>"></td>
<td width="98">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="100%"><input type="submit" value="Delete" (((((**HERE IS MY PROBLEM** onClick="this.form.action='do something.asp?method=Delete';"></td>)))))
</tr>
</table>