M
Miranda
Hello, could somebody please help me figure this error out. I'm at my
wits end here. This is my connection & SQL statement:
<%@Language="Javascript" %>
<!--#include file="../../admin/adojavas.inc"-->
<%
var conn;
var rs;
var sSQL;
conn = Server.CreateObject("ADODB.connection");
conn.Open("cpWebdata");
sSQL = "SELECT InvestorId.Investors, MemberID.Investors ";
sSQL += " FROM Investors ";
sSQL += " WHERE InvestorId= '" + Request.Form("clientName") + "' ";
sSQL += " AND MemberID = '" + Request.Form("clientPass") + "' ";
THIS IS LINE 18 - > rs.Open(sSQL,conn);
Response.write(sSQL);
rs.close();
conn.close();
rs=null;
conn=null;
%>
And this is the error I am getting:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
2.
line 18.
The data it is checking is numeric, so I am wondering if there is an
issue with my quotes in my SQL statement?
Just in case it helps, here is the form:
<form name="f1" action="authorizeClienttest.asp" method="post"
onSubmit="return verify(f1);">
Client Login
Name:<input name="clientName" type="text" size="10" maxlength="10">
Password:<input name="clientPass" type="text" size="10"
maxlength="10">
<a href="#"><input type="image" src="images/loginSubmit.gif"
width="38" height="17" border="0" alt="Log In"></a>
</form>
Any help with this would be gratefully appreciated
Thanks in advance,
Cheers,
Miranda Johnsen
www.mirandajohnsen.com
******************************************************************
DEEP THOUGHTS...
"Every worthwhile accomplishment, big or little, has its stages of
drudgery and triumph; a beginning, a struggle and a victory."
Ghandi
********************************************************************
wits end here. This is my connection & SQL statement:
<%@Language="Javascript" %>
<!--#include file="../../admin/adojavas.inc"-->
<%
var conn;
var rs;
var sSQL;
conn = Server.CreateObject("ADODB.connection");
conn.Open("cpWebdata");
sSQL = "SELECT InvestorId.Investors, MemberID.Investors ";
sSQL += " FROM Investors ";
sSQL += " WHERE InvestorId= '" + Request.Form("clientName") + "' ";
sSQL += " AND MemberID = '" + Request.Form("clientPass") + "' ";
THIS IS LINE 18 - > rs.Open(sSQL,conn);
Response.write(sSQL);
rs.close();
conn.close();
rs=null;
conn=null;
%>
And this is the error I am getting:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
2.
line 18.
The data it is checking is numeric, so I am wondering if there is an
issue with my quotes in my SQL statement?
Just in case it helps, here is the form:
<form name="f1" action="authorizeClienttest.asp" method="post"
onSubmit="return verify(f1);">
Client Login
Name:<input name="clientName" type="text" size="10" maxlength="10">
Password:<input name="clientPass" type="text" size="10"
maxlength="10">
<a href="#"><input type="image" src="images/loginSubmit.gif"
width="38" height="17" border="0" alt="Log In"></a>
</form>
Any help with this would be gratefully appreciated
Thanks in advance,
Cheers,
Miranda Johnsen
www.mirandajohnsen.com
******************************************************************
DEEP THOUGHTS...
"Every worthwhile accomplishment, big or little, has its stages of
drudgery and triumph; a beginning, a struggle and a victory."
Ghandi
********************************************************************