【急】请大虾指点一下,如何用DTPicker控件对ACCESS数据进行筛选查询
如标题所述,提示 语法错误(操作符丢失)在查询表达式...其中“交期”在access中式 “日期/时间” 数据类型,请大侠帮忙指点一下啊程序代码:
conn.Close conn.Open "Provider=Microsoft.Jet.Oledb.4.0;Persist Security Info=false;Data source=" & App.Path + "\bfdtb.mdb" rs.CursorLocation = adUseClient rs.Open "select * from dtb where 交期 >= & DTPicker5(0).Value & and 交期 <= &DTPicker5(1).Value &", conn, adOpenDynamic, adLockPessimistic '语法错误(操作符丢失)在查询表达式 Set DataGrid1.DataSource = rs