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 / July 2006

Tip: Looking for answers? Try searching our database.

use calendar control in unbound form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Walter - 19 Jul 2006 22:09 GMT
I have a query that reads a date field:

Between [Forms]![pickdate]![fromdate] And [Forms]![pickdate]![todate]

The fromdate and todate values come from a calendar control in an unbound
form. However, the todate is not inclusive as there are missing records. Any
ideas would be great.
Michel Walsh - 20 Jul 2006 00:36 GMT
Hi,

Add 1 to todate since by default, the time is, say, at 00:00:00 as in   July
17, 2006  at 00:00:00.  So, July 17, 2006, 06:00:00  is AFTER the limit you
supplied. Adding 1 (day = 24 hour)  correct the situation.

Between [Forms]![pickdate]![fromdate] And CDate([Forms]![pickdate]![todate])
+ 1

Hoping it may help,
Vanderghast, Access MVP

>I have a query that reads a date field:
>
[quoted text clipped - 4 lines]
> Any
> ideas would be great.
Walter - 20 Jul 2006 14:45 GMT
Thanks for the prompt reply, Michael.

The query formula makes sense but still does not work. Funny thing is the
query returns all records if I use a textbox to capture the fromdate and
todate.

I checked the properties in the calendar box but did not see any relevant
paramenter.

> Hi,
>
[quoted text clipped - 16 lines]
> > Any
> > ideas would be great.
 
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.