各位大侠怎样判断一个字段为空

little_tao_tao 2003-03-28 08:10:07
怎样判断一个字段为空
if rs(i)<>"" then 对吗?
...全文
47 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
dreamer2k 2003-04-01
  • 打赏
  • 举报
回复
同上!
jadehong 2003-04-01
  • 打赏
  • 举报
回复
你可以用if isnull() then
oswica 2003-04-01
  • 打赏
  • 举报
回复
up
lxcc 2003-04-01
  • 打赏
  • 举报
回复
if isnull(...) then
xinshou1979330 2003-04-01
  • 打赏
  • 举报
回复
if isnull(rs.fields(0)) then

if isnull(rs(0)) then

if isnull(rs.fields(0).value) then

if isnull(rs("FieldName")) then
Javaxhb 2003-04-01
  • 打赏
  • 举报
回复
Is NULL
xks 2003-04-01
  • 打赏
  • 举报
回复
千言万语汇成一句话!
dim i as interger
dim j as interger
for i= 0 to rs.fields.count
if Isnull(rs.fields(i))=true then
j=j+1
end if
next
print "不为空的字段数为" & j;
newhand 2003-04-01
  • 打赏
  • 举报
回复
ISNULL
xsp 2003-04-01
  • 打赏
  • 举报
回复
我一般用:
if (rs(i) & "")="" then
BenBenBoy 2003-04-01
  • 打赏
  • 举报
回复
我一般用一句话

var = iif(isnull(rs.fields(0).value), 0, rs.fields(0).value)
lonelystarcn 2003-03-29
  • 打赏
  • 举报
回复
if isnull(rs.fields(0)) then

if isnull(rs(0)) then

if isnull(rs.fields(0).value) then

if isnull(rs("FieldName")) then

pcwak 2003-03-28
  • 打赏
  • 举报
回复
UP
zhenxizhou 2003-03-28
  • 打赏
  • 举报
回复
IsNull
northwolves 2003-03-28
  • 打赏
  • 举报
回复
if isnull(rs.fields(0))=true then
xlt771111 2003-03-28
  • 打赏
  • 举报
回复
isnull

1,216

社区成员

发帖
与我相关
我的任务
社区描述
VB 数据库(包含打印,安装,报表)
社区管理员
  • 数据库(包含打印,安装,报表)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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