在使用sql访问Access日期字段,应在变量前后加#,例子:
s:=Format(select xueshID,name,times,qukbz,skdate,banji from dianmjili where skdate =%s,[#+formatdatetime(yyyy/m/d,DateTimePicker1.Datetime)+#]);
在使用sql访问Access日期字段,应在变量前后加#,例子:
s:=Format(select xueshID,name,times,qukbz,skdate,banji from dianmjili where skdate =%s,[#+formatdatetime(yyyy/m/d,DateTimePicker1.Datetime)+#]);