主题:[讨论]为什么使用now()函数时会出现这样的错误?
大家好!我做了个人事管理系统,其中有一个模块是关于签到签离的,我的代码上这样的,
integer iID
string strPWD
integer iCount
iID = integer(sle_bm.text)
strPWD = sle_pwd.text
select count(*) into :iCount from employee where iemployeeid =:iID and strPWD = :strPWD;
if icount <>1 then
messagebox("ERROR","雇员不存在或者密码不对!")
else
insert into employeecheck (timecheckcome,dtdate,iemployeeid,timecheckleave) values(now(),now(),:iID,NULL);
messagebox("OK","签到完毕!")
end if
可是结果是说"now"不是可以识别的函数名
now()不是系统函数吗?为什么说有错呢?
哪位高手可以指教一下我呢?
谢谢!
integer iID
string strPWD
integer iCount
iID = integer(sle_bm.text)
strPWD = sle_pwd.text
select count(*) into :iCount from employee where iemployeeid =:iID and strPWD = :strPWD;
if icount <>1 then
messagebox("ERROR","雇员不存在或者密码不对!")
else
insert into employeecheck (timecheckcome,dtdate,iemployeeid,timecheckleave) values(now(),now(),:iID,NULL);
messagebox("OK","签到完毕!")
end if
可是结果是说"now"不是可以识别的函数名
now()不是系统函数吗?为什么说有错呢?
哪位高手可以指教一下我呢?
谢谢!