Foxtable(狐表)用户栏目专家坐堂 → 这条查询语句这么写有错误


  共有2299人关注过本帖平板打印复制链接

主题:这条查询语句这么写有错误

帅哥哟,离线,有人找我吗?
天蝉一线
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:370 积分:3195 威望:0 精华:0 注册:2016/6/16 16:11:00
这条查询语句这么写有错误  发帖心情 Post By:2016/10/20 19:06:00 [只看该作者]

cmd.Comm andText="Select count(*) fro m {预算录入明细库} where 下达年度 ='" & year & "'and 资金来源= '" & zjly & "' is not null And 预算资金性质='" & yszjxz & "'is not null And 预算下达部门='" & ysxdbm & "' and 预算实施部门='" & ysssbm & "'is not null and 一级科目='" & kmmc & "'"
    If cmd.Ex ecut eSc alar>0 Then
        cmd1.Comm andText="select * fr om {预算录入明细库} where 下达年度 ='" & year & "'and 资金来源=  '" & zjly & "' is not null and 预算资金性质='" & yszjxz & "'is not null and 预算下达部门='" & ysxdbm & "' and 预算实施部门=='" & ysssbm & "'is not null and 一级科目='" & kmmc & "'"
    Else


上述代码执行有问题,主要还是空值的问题,您能不能帮我解决!非常感谢

 回到顶部