Microsoft JET Database Engine 错误 '80040e07' 求助

从允 2010-07-29 10:49:20
提示错误:

Microsoft JET Database Engine 错误 '80040e07'

标准表达式中数据类型不匹配。

/regfun.asp,行 424


代码:
(红色是424行)

'检测email及Ip是否重复
if onlymail = 1 then
If not conn.Execute("Select userid From [9cool_user] where email='"&email&"' and groups="&clng(groups)&"").eof Then
WriteErrMsg("您所用的E-mail已经注册过了!")
end if
end if
if iptime = 1 then
If not conn.Execute("Select userid From [9cool_user] where regip='"&GetIP()&"' and groups="&clng(groups)&" and regdate='"&Date()&"'" ).eof Then
WriteErrMsg("这段时间注册的用户过多,请隔段时间再试!")
end if
end if
'判断用户名是否重复
If not conn.Execute("Select userid From [9cool_user] where username='"&username&"'" ).eof Then
WriteErrMsg("您所选择的用户名已经注册过了!")
end if
'判断目录是否存在

望高人解答,谢谢。
...全文
209 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
suano 2010-07-29
  • 打赏
  • 举报
回复
clng是取整函数,如果你的group为空就会暴这样的错
  • 打赏
  • 举报
回复
标准表达式中数据类型不匹配。

说明字段与数据的值类型不一样

在这句话前面加

response.write "Select userid From [9cool_user] where regip='"&GetIP()&"' and groups="&clng(groups)&" and regdate='"&Date()&"'"

response.end
If not conn.Execute("Select userid From [9cool_user] where regip='"&GetIP()&"' and groups="&clng(groups)&" and regdate='"&Date()&"'" ).eof Then


看看输出的什么结果
从允 2010-07-29
  • 打赏
  • 举报
回复
不好意,不懂程序,也不知道groups表示什么。呵呵。
谢谢您的帮助。
孟子E章 2010-07-29
  • 打赏
  • 举报
回复
groups有值吗?

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧