aspmonster
IS-IT--Management
I am trying to carry over one record from page1 to page 2.
I am not sure if I can use querystring or otherwise..
This is a portion of my code.
Page 1
============
<!--Where I use my field as a hyperlink to carry over -->
<td><A href="msaccess_form_test.asp?id= <%=rs("Company"%> "><%=rs("Company"%></a></td>
============
Page 2
===========
<!--The SQL Query on Page 2 -->
<%
Dim rs, strSQL, tbl, Market, MP
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=db\tr_courses.mdb"
set rs = server.CreateObject("ADODB.Recordset"
strSQL = "Select * From VIPWebReport WHERE Company = "
strSQL = strSQL & " ORDER BY District, Company"
rs.open strSQL,conn,3,2
%>
<!--Where record is displayed -->
<input name="courseid_form" size="30" value="<%=rs("Company"%>" disabled>
===========
Please help..I am not sure if I am doing anything wrong..
If anyone can give links to any examples where record is carried from one page to other..from a beginner - intermediate level of asp..that would be great too..
I am not sure if I can use querystring or otherwise..
This is a portion of my code.
Page 1
============
<!--Where I use my field as a hyperlink to carry over -->
<td><A href="msaccess_form_test.asp?id= <%=rs("Company"%> "><%=rs("Company"%></a></td>
============
Page 2
===========
<!--The SQL Query on Page 2 -->
<%
Dim rs, strSQL, tbl, Market, MP
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=db\tr_courses.mdb"
set rs = server.CreateObject("ADODB.Recordset"
strSQL = "Select * From VIPWebReport WHERE Company = "
strSQL = strSQL & " ORDER BY District, Company"
rs.open strSQL,conn,3,2
%>
<!--Where record is displayed -->
<input name="courseid_form" size="30" value="<%=rs("Company"%>" disabled>
===========
Please help..I am not sure if I am doing anything wrong..
If anyone can give links to any examples where record is carried from one page to other..from a beginner - intermediate level of asp..that would be great too..