日期:2014-05-17  浏览次数:20850 次

大家进来帮我看看这几条SQL语句为什么执行出错?
SQL   =   ( "Select   *   From   RewardRecord   where   LoginID   =   ' "&Session( "LoginID ")& " '   and   FormatDateTime(Time,2)   =   FormatDateTime( "&timeRs( "Time ")& ",2) ")

提示操作符出错!

我在ACCESS数据库里建了个查询AgentTime   运行正确   语句如下:
SELECT   FormatDateTime(AgentPrice.Time,2)   AS   tmpTime
FROM   AgentPrice
ORDER   BY   Time   DESC;

为什么我在ASP页面
Select   tmpTime   form   AgentTime
提示下面错误?
错误类型:
Microsoft   JET   Database   Engine   (0x80040E14)
表达式中   'FormatDateTime '   函数未定义。


------解决方案--------------------
response.write sql
先.