菜
菜鸟黄
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm13.BitBtn3Click(Sender: TObject);var s,m,n:string;begin Form1.ADOQuery1.Active :=False; m:=datetostr(now); n:=datetostr(now+RzDBSpinEdit1.Value); s:='select * from YGZL where strtodate(IntToStr(YearOf(now))-IntToStr(MonthOf(出生日期))-IntToStr(DayOf(出生日期))) between '; s:=s+'#'+m+'#'+' and '; s:=s+'#'+n+'#'; Form1.ADOQuery1.SQL.Text :=s; Form1.ADOQuery1.Active :=True;end;我用的是ACCESS数据库,请问我应该怎么修改才可以.