Redhead
03-05-2003, 01:16 PM
Hi Everyone
I'm trying to learn ASP on my own. I am trying to create a login area where a member can login and it will pull information out of a access97 db about them.
I have the login working well and it does send them to the members page, that's were i'm having troubles.
What i have is
<%
Dim strError
Dim strSQL
Dim rst
Dim conn
set conn = server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/WebSites/ClientOne/members/mas_2000.mdb"
strSQL = "SELECT rating FROM AllPerProf WHERE studentid='" & _
(Request.Form("studentid")) & "'"
set rst = server.CreateObject("ADODB.Recordset")
rst.Open strSQL, conn
If Not rst.EOF then
Response.write rst("rating")
Else
Response.write "Could not Find Value"
End IF
rst.close
set rst = nothing
set objCommand = Nothing
%>
i'm getting the error
No value given for one or more required parameters.
/ClientOne/members/default.asp, line 16
Can anyone help me! :)
I'm trying to learn ASP on my own. I am trying to create a login area where a member can login and it will pull information out of a access97 db about them.
I have the login working well and it does send them to the members page, that's were i'm having troubles.
What i have is
<%
Dim strError
Dim strSQL
Dim rst
Dim conn
set conn = server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/WebSites/ClientOne/members/mas_2000.mdb"
strSQL = "SELECT rating FROM AllPerProf WHERE studentid='" & _
(Request.Form("studentid")) & "'"
set rst = server.CreateObject("ADODB.Recordset")
rst.Open strSQL, conn
If Not rst.EOF then
Response.write rst("rating")
Else
Response.write "Could not Find Value"
End IF
rst.close
set rst = nothing
set objCommand = Nothing
%>
i'm getting the error
No value given for one or more required parameters.
/ClientOne/members/default.asp, line 16
Can anyone help me! :)