Thanks guys for yesterday of course the struggle continues.
*have my asp page1.asp here I have 2 forms on this page. In The first form on this page there is no actual texboxes etc just used the submit button put a link on it which takes you to another page.(just serving the purposed of a hyperlink).
the second form is a proper form with a drop down box.The drop down box is populated with fields from the database table. Now when the user picks an option from the drop down this is what I want to happen.
On page1.asp
* The information selected by the user from the drop down box is retrieved/captured which represents a record in the database.
when the submit Button is hit I want it to open another page -page2.asp- where the fields in the database for that record the user selected from the drop down is displayed for the user to update.
This is how I set out to capture the value from the drop down in the form -page1.asp-
Session(userbill) = Request.form("BILLNO") also with the
<form method="POST" action="page2.asp"
In -page2.asp- this is my scripting
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("adodb.Recordset")
Conn.Open "eiwp"
SQLQuery = "Select * from tblopgaCOm2 WHERE billNo = " & Session(userbill)
RS.Open SQLQuery ,Conn,1,1
but it is given me THESE errors
"Session object error 'ASP 0102 : 80004005'
Expecting string input
/eiwp/audit.asp, line 63
The function expects a string as input".
A RESPONSE APPRECIATED AS ALWAYS
*have my asp page1.asp here I have 2 forms on this page. In The first form on this page there is no actual texboxes etc just used the submit button put a link on it which takes you to another page.(just serving the purposed of a hyperlink).
the second form is a proper form with a drop down box.The drop down box is populated with fields from the database table. Now when the user picks an option from the drop down this is what I want to happen.
On page1.asp
* The information selected by the user from the drop down box is retrieved/captured which represents a record in the database.
when the submit Button is hit I want it to open another page -page2.asp- where the fields in the database for that record the user selected from the drop down is displayed for the user to update.
This is how I set out to capture the value from the drop down in the form -page1.asp-
Session(userbill) = Request.form("BILLNO") also with the
<form method="POST" action="page2.asp"
In -page2.asp- this is my scripting
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("adodb.Recordset")
Conn.Open "eiwp"
SQLQuery = "Select * from tblopgaCOm2 WHERE billNo = " & Session(userbill)
RS.Open SQLQuery ,Conn,1,1
but it is given me THESE errors
"Session object error 'ASP 0102 : 80004005'
Expecting string input
/eiwp/audit.asp, line 63
The function expects a string as input".
A RESPONSE APPRECIATED AS ALWAYS