Hello All,
I am working on a project.
I have an asp script that returns all the records for a work id in my db. The data that I get looks somewhat like this
Work Order
1234
12345
12346
12347
What I am trying to accomplish is to convert each order into a button so the user can click on the order and it inserts that number into my db
I know how to do an insert and how to show the records but how could I do both?
here is the way I show the records
any help or pointers are always appreciated
Thanks
I am working on a project.
I have an asp script that returns all the records for a work id in my db. The data that I get looks somewhat like this
Work Order
1234
12345
12346
12347
What I am trying to accomplish is to convert each order into a button so the user can click on the order and it inserts that number into my db
I know how to do an insert and how to show the records but how could I do both?
here is the way I show the records
Code:
<%@LANGUAGE=VBSCRIPT%>
<%
Option Explicit
Dim strConnection, conn, rs, strSQL
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("dp_asptut.mdb") & ";User Id=admin;Password=;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open strConnection
Set rs = Server.CreateObject("ADODB.recordset")
strSQL = "SELECT * FROM mo"
rs.open strSQL, conn, 3,3
rs.MoveFirst
WHILE NOT rs.EOF
Response.Write(rs("monumber") & "<br/>")
rs.MoveNext
WEND
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
%>
any help or pointers are always appreciated
Thanks