Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / January 2006

Tip: Looking for answers? Try searching our database.

Extracting date from dat/time field : help required

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
skinnybloke - 31 Jan 2006 12:34 GMT
Hi - I have a date field in a Access database in the format
YYYY/MM/DD HH:MM

I have set up 2 date parameters as below but only want to enter the
date and not the time. If I do not enter the time no records are
returned.

SELECT * FROM tables WHERE Order.[Date Received]  Between [Enter Start
Date] And [Enter End Date];

Is there a simple way of doing this?
Allen Browne - 31 Jan 2006 15:58 GMT
Ask for less than the next day:

   SELECT * FROM tables
   WHERE (Order.[Date Received]  >= [Enter Start Date])
    AND (Order.[Date Received] < [Enter End Date] + 1);

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Hi - I have a date field in a Access database in the format
> YYYY/MM/DD HH:MM
[quoted text clipped - 7 lines]
>
> Is there a simple way of doing this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.