asp程序错误

来源:百度知道 编辑:UC知道 时间:2024/06/30 14:46:22
if minute(now)-minute(cdate(myrecord1("TimeLastTalking")))>=5 or (minute(now)-minute(cdate(myrecord1("TimeLastTalking")))<0 and minute(now)+60-minute(cdate(myrecord1("TimeLastTalking")))>=5)

是上面这段报错信息为:Microsoft VBScript 运行时错误 错误 '800a005e'

无效使用 Null: 'cdate'

为什么??帮帮忙
这我也不清楚,我刚学的,

你确定你的每个记录的TimeLastTalking字段都不为空吗?

那你到数据库里看一下啊

可能那个字段是空的,所以出错了
如果是空的就在里面手工写个日期就可以了