Freon22
01-03-2003, 10:19 AM
Hi, All
I am one of those guys that knows enough to get into trouble.
So here I go, What I am trying to do is to be able to edit files in the data base.
But I cann't get the form part to work, I am sure I'm just over looking something just don't know what.
Here's the code, I hope someone out where can help and even
if you cann't thanks for trying.
<table cellspacing="10">
<tr>
<td><b>Owners Name</b></td>
<td><b>Date Sold</b></td>
<td><b>Unit Name</b></td>
<td><b>Unit Type</b></td>
<td><b>Date Installed</b></td>
<td><b>Sales Price</b></td>
<td><b>Cost</b></td>
<td><b>Profit</b></td>
<td><b>Salesman</b></td>
</tr>
<%
Do While (Not objRS.EOF and iCount < 5)
Response.Write "<tr><td>" & objRS("lastname") & "</td>"
Response.Write "<td>" & objRS("datesold") & "</td>"
Response.Write "<td>" & objRS("unitname") & "</td>"
Response.Write "<td>" & objRS("unittype") & "</td>"
Response.Write "<td>" & objRS("dateinstalled") & "</td>"
Response.Write "<td>$ " & objRS("saleprice") & "</td>"
Response.Write "<td>$ " & objRS("cost") & "</td>"
Response.Write "<td>$ " & objRS("profit") & "</td>"
Response.Write "<td>" & objRS("salesman") & "</td>"
Response.Write "<td><form method=get action='editsales.asp'>
<input type=hidden name=number value=<%=objRS("number") %>>
<input type=submit value='edit'></form>" & "</td></tr>"
iCount = iCount + 1
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
</table>
I am one of those guys that knows enough to get into trouble.
So here I go, What I am trying to do is to be able to edit files in the data base.
But I cann't get the form part to work, I am sure I'm just over looking something just don't know what.
Here's the code, I hope someone out where can help and even
if you cann't thanks for trying.
<table cellspacing="10">
<tr>
<td><b>Owners Name</b></td>
<td><b>Date Sold</b></td>
<td><b>Unit Name</b></td>
<td><b>Unit Type</b></td>
<td><b>Date Installed</b></td>
<td><b>Sales Price</b></td>
<td><b>Cost</b></td>
<td><b>Profit</b></td>
<td><b>Salesman</b></td>
</tr>
<%
Do While (Not objRS.EOF and iCount < 5)
Response.Write "<tr><td>" & objRS("lastname") & "</td>"
Response.Write "<td>" & objRS("datesold") & "</td>"
Response.Write "<td>" & objRS("unitname") & "</td>"
Response.Write "<td>" & objRS("unittype") & "</td>"
Response.Write "<td>" & objRS("dateinstalled") & "</td>"
Response.Write "<td>$ " & objRS("saleprice") & "</td>"
Response.Write "<td>$ " & objRS("cost") & "</td>"
Response.Write "<td>$ " & objRS("profit") & "</td>"
Response.Write "<td>" & objRS("salesman") & "</td>"
Response.Write "<td><form method=get action='editsales.asp'>
<input type=hidden name=number value=<%=objRS("number") %>>
<input type=submit value='edit'></form>" & "</td></tr>"
iCount = iCount + 1
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
</table>