访问Access日期字段

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

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

 

posted @ 2015-03-06 09:21  realhopezj  阅读(225)  评论(0编辑  收藏  举报