Here's what I'm trying to do fellas,
Working with Access & ASP.
I have a table and a query.
On my query I have a field named logs that is the same number as in the table1 ID field.
What I'm trying to do is display on the screen, the name of the person where the ID is the same in both the Query and Table1. Here's what I'm doing, please advise me on what I'm doing wrong.
*********************** sample code ******************
<%
reqname = Request.form("Name"
SQL2 = "select * from table1 where username = " & reqname
Dim myRS1
set myRS1=server.createobject("ADODB.recordset"
myRS1.open SQL2, "DSN=db1"
sql = "Select * from query1"
sql = sql & " where logged_id = '" & reqdtname & "' order by logintime"
'sql = sql & " where logged_id = '" & Dtname3("id" & "' order by logintime"
Dim myRS2
set myRS2=server.createobject("ADODB.recordset"
myRS2.open sql, "DSN=matte"
if myRS2.EOF then
response.redirect "norecordsfound.asp"
end if
%>
I keep getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/site/search.asp, line 7
*********************** sample code ******************
"The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
Working with Access & ASP.
I have a table and a query.
On my query I have a field named logs that is the same number as in the table1 ID field.
What I'm trying to do is display on the screen, the name of the person where the ID is the same in both the Query and Table1. Here's what I'm doing, please advise me on what I'm doing wrong.
*********************** sample code ******************
<%
reqname = Request.form("Name"
SQL2 = "select * from table1 where username = " & reqname
Dim myRS1
set myRS1=server.createobject("ADODB.recordset"
myRS1.open SQL2, "DSN=db1"
sql = "Select * from query1"
sql = sql & " where logged_id = '" & reqdtname & "' order by logintime"
'sql = sql & " where logged_id = '" & Dtname3("id" & "' order by logintime"
Dim myRS2
set myRS2=server.createobject("ADODB.recordset"
myRS2.open sql, "DSN=matte"
if myRS2.EOF then
response.redirect "norecordsfound.asp"
end if
%>
I keep getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/site/search.asp, line 7
*********************** sample code ******************
"The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>