[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Using Datetimes in Access 2007 queries

I am used to SQL Server Management Studio and am transporting my SQL queries into Access 2007.  How would I write this in Access?

SELECT Orders.[Order Date]
FROM Orders
WHERE
    Orders.[Order Date] >= '01/01/2004 00:00:00' and
Orders.[Order Date] < '01/01/2005 00:00:00'
0
chaverly
Asked:
chaverly
1 Solution
 
Gustav BrockCIOCommented:
Like this:

SELECT Orders.[Order Date]
FROM Orders
WHERE
    Orders.[Order Date] >= #01/01/2004 00:00:00#
    and
    Orders.[Order Date] < #01/01/2005 00:00:00#

/gustav
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now