MS Access 2007: date query

后端 未结 2 934
臣服心动
臣服心动 2021-01-22 07:36

I need help with date queries in MS Access 2007.

How do I show all data between date:01/06/2010 time:10:51 and date:13/07/2010 time:22:30?

2条回答
  •  天涯浪人
    2021-01-22 08:01

    I have not used MS Access for years, so this is only from memory: Access uses # instead of ' for date values. And you need to use ISO format:

    WHERE datecolumn >= #2010-06-01 10:51# AND datecolumn <= #2010-07-13 22:30#
    

提交回复
热议问题