读书人

大家进来帮小弟我看看这几条SQL语句为

发布时间: 2012-03-14 12:01:12 作者: rapoo

大家进来帮我看看这几条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
先.

读书人网 >ASP

热点推荐