数据库存在怎么找不到?
"select * from 表1 where 日期字段=#" & txtyear.text & "-" & txtmonth.text & "-" & txtday.text & "#"
"select * from 表1 where 日期字段=#" & formatdatetime(txtyear.text & "-" & txtmonth.text & "-" & txtday.text,0) & "#"
都试过了,日期字段是‘日期/时间’型中的‘中日期’,我用的是ACCESS97