恭喜,你发布的帖子
发布于 2016-03-03 15:33:31
3楼
谢谢!执行语句我已经发现问题改过来了Sql =Sql+ " and GJ_Num = " + "&GJ_Num.Value&"
但是前边的 If 条件语句 还是有问题,在VBS下边应该怎么写呢?
麻烦您指点一下?
If !String.Is Null Or Empty(GJ_Num.Value) Then REM:工件编号条件
Sql =Sql + " and GJ_Num = " + GJ_Num.Value
end if
If !String.Is Null Or Empty(SX_CZ.Value) Then REM:姓名1条件
Sql =Sql + " and CZY = " + SX_CZ.Value
end if
If !String.Is Null Or Empty(SX_JY.Value) Then REM:姓名2条件
Sql =Sql + " and JYY = " + SX_JY.Value
end if
请填写推广理由:
分享
只看
楼主