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 / Queries / November 2005

Tip: Looking for answers? Try searching our database.

How do I compare just the date portion of date time fields in SQL?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Branden - 29 Nov 2005 22:29 GMT
What is the Access SQL syntax for comparing only the date portion of two date
time fields?

Branden
mscertified - 29 Nov 2005 22:39 GMT
Look in Help for the 'DateDiff' function

Dorian

> What is the Access SQL syntax for comparing only the date portion of two date
> time fields?
>
> Branden
fredg - 29 Nov 2005 22:48 GMT
> What is the Access SQL syntax for comparing only the date portion of two date
> time fields?
>
> Branden

You can use
DateValue([SomeField])
or
Int([SomeField])
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

John Vinson - 29 Nov 2005 23:22 GMT
>What is the Access SQL syntax for comparing only the date portion of two date
>time fields?
>
>Branden

WHERE DateValue([DateFieldA]) = DateValue([DateFieldB])

                 John W. Vinson[MVP]    
 
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.