H
hedana1977
Unregistered / Unconfirmed
GUEST, unregistred user!
var
ctime1,ctime2:string;
begin
ctime1:=formatdatetime('yyyymmdd',time1.Date);
ctime2:=formatdatetime('yyyymmdd',time2.Date);
if cgk.Active then cgk.Close ;
cgk.CommandText :='select * from v_cgk where convert(char,cgdate,112)>='+''''+ctime1+''''+' and convert(char,cgdate,112)<=' +''''+ctime2+'''';
cgk.Open ;
end;
我这个上面是SQL server数据库下的,但是Access下,不能用,好像是没有convert
这个函数,请教高手我应该怎么写,谢谢。
ctime1,ctime2:string;
begin
ctime1:=formatdatetime('yyyymmdd',time1.Date);
ctime2:=formatdatetime('yyyymmdd',time2.Date);
if cgk.Active then cgk.Close ;
cgk.CommandText :='select * from v_cgk where convert(char,cgdate,112)>='+''''+ctime1+''''+' and convert(char,cgdate,112)<=' +''''+ctime2+'''';
cgk.Open ;
end;
我这个上面是SQL server数据库下的,但是Access下,不能用,好像是没有convert
这个函数,请教高手我应该怎么写,谢谢。