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 / Forms / March 2008

Tip: Looking for answers? Try searching our database.

setting filter on a subform from a calendar control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Doree - 26 Mar 2008 17:31 GMT
Hi,

I've got a calendar control on the main form, and I want a subform to be
filtered to the date selected on the calendar control, but can't get the
syntax right.

The subform needs to display all dates at first, until the date is selected
in the control, then once that is done just display the rows for the
selected date (the date field in the subform is called DateWorked).

Any help appreciated.

Paul.
Douglas J. Steele - 26 Mar 2008 17:50 GMT
Create a query to use as the RecordSource for the subform. The Where clause
should be something like:

WHERE (([MyDateField] = Forms![NameOfMainForm]![NameOfCalendarControl])
OR (Forms![NameOfMainForm]![NameOfCalendarControl] IS NULL))

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hi,
>
[quoted text clipped - 9 lines]
>
> Paul.
 
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.