访问Access日期字段

在使用sql访问Access日期字段,应在变量前后加#,例子:

s:=Format(select xueshID,name,times,qukbz,skdate,banji from dianmjili where skdate =%s,[#+formatdatetime(yyyy/m/d,DateTimePicker1.Datetime)+#]);

原文地址:https://www.cnblogs.com/realhope/p/4317225.html