我在ASP登录时收到以下错误
Microsoft JET Database Engine error '80040e10' No value given for one or more required parameters. /vdateUsr.asp, line 47
正在表单中输入数据并在Access数据库中进行检查。这是代码:
' variables
dim cnStr
dim rcSet
dim frmUsername
dim frmPassword
dim sqlStr
dim strSQL
'store form input into variables
frmUsername = Request.Form("username")
frmPassword = Request.Form("password")
'create connection and recordset objects
Set cnStr = Server.CreateObject("ADODB.Connection")
Set rcSet = Server.CreateObject("ADODB.Recordset")
' defining database connection (connectionstring.asp)
cnStr.ConnectionString = path
cnStr.Provider = provider
cnStr.open
' execute sql and open as recordset
sqlStr = "Select * From users where [User Name] = ('" & frmUsername & "') and [Password] = ('" + frmPassword + "')"
strSQL="SELECT startup site FROM users WHERE [User Name] = ('" & frmUsername & "') and [Password] = ('" & frmPassword & "')"
' Opens the returned values from the SQL as a recordset, ready for iteration by ASP
'Line 47 below
set rcSet = cnStr.Execute(sqlStr)
任何帮助将不胜感激。
提前致谢
答案 0 :(得分:0)
从Excel加载到SQL Server中时,我们遇到了这个确切的错误。原因是我们使用了在源Excel中不存在的列[F6](文件格式已更改)。所以,一个"参数"可以是一个专栏。