adamsoderqvist
Programmer
I keep getting the same err msg when I connect to an access DB;
"Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
And the code is;
---begin code---
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "DRIVER={Microsoft Access Driver
(*.mdb)}; " & "DBQ=" & Request.ServerVariables("APPL_PHYSICAL_PATH" & "ptrl\Members.mdb"
objConn.Open
'Declare recordset object...
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
'Declare SQL query...
Dim strSQL
strSQL = "SELECT UserName, Password, LastLogin, UserLevel FROM tblMember WHERE UserName='" & strUserName & "'"
'Open the database and get the requested info!
objRS.Open strSQL, objConn
---end code---
What's wrong?? What bugs is that this code is the EXACT same as I've used in another project, and it worked perfectly.
I've also tried: "objConn.Execute strSQL", with the same result
Pls hlp!!
"Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
And the code is;
---begin code---
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "DRIVER={Microsoft Access Driver
(*.mdb)}; " & "DBQ=" & Request.ServerVariables("APPL_PHYSICAL_PATH" & "ptrl\Members.mdb"
objConn.Open
'Declare recordset object...
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
'Declare SQL query...
Dim strSQL
strSQL = "SELECT UserName, Password, LastLogin, UserLevel FROM tblMember WHERE UserName='" & strUserName & "'"
'Open the database and get the requested info!
objRS.Open strSQL, objConn
---end code---
What's wrong?? What bugs is that this code is the EXACT same as I've used in another project, and it worked perfectly.
I've also tried: "objConn.Execute strSQL", with the same result
Pls hlp!!