义乌中学分数线会怎样:asp怎么判断日期型数据是否为空

来源:百度文库 编辑:神马品牌网 时间:2024/05/08 03:31:24
我的数据库是access里面有字段i_date为日期型

我用if rs("i_date")="" then 判断是否为空时,永远为“真”

请问应该用什么方法,去判断?谢谢各位,小弟在线等

isempty(rs("i_date")

你就反一下啊 if rs("i_date")<>"" then....

if trim(rs("i_date"))="" then
这样应该没问题.

if rs("i_date")="" Or rs("i_date") Is Nothing then
试试

if len(rs("i_date"))=0 or isnull(rs("i_date")) or isempty(rs("i_date")) then
这个应该可以的