查询Microsoft Jet数据库日期参数

时间:2014-07-14 12:48:19

标签: sql database ms-access

我正在尝试使用Microsoft Jet数据库查询表。这是我正在使用的代码

SELECT orderID, OriginCustomer, OriginAddress, DestinationCustomer, DestinationAddress, purchaseOrder, productSize, referenceNumber, actionDescription, actionNote, actionDriver, actionStatus, actionColorNumber, actionDate FROM actionView 
WHERE (actionDriver = ?)
AND ( actionDate between #(?)# and #(?)#)

我得到的错误是

  

无法将条目转换为有效日期/时间   可能需要TO_DATE函数

我正在尝试找到合适的sql语法,但我找不到它或想出来......
我正在使用访问数据库
哦,是的,我忘了提到......我正在使用.NET和C#通过visual studio制作Winform应用程序。 This is a screen shot of my window if it helps...

0 个答案:

没有答案
相关问题