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 / New Users / January 2005

Tip: Looking for answers? Try searching our database.

How do I pass the date clicked on a Calendar to a parameter query.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mickey - 02 Jan 2005 16:11 GMT
I have a simple application and want to select a date from a calendar and run
a parameter query. how do i do that? Thanks
PC Datasheet - 02 Jan 2005 18:49 GMT
Your calendar named MyCalendar is on a form we will call PFrmMyCalendar. Add
a textbox named MyDate to the form and set its visible property to false.
Put the following code in the calendar's AfterUpdate event:
Me!MyDate = Me!MyCalendar.Value
Put the following expression in the criteria of the date field in your
query:
Forms!PFrmMyCalendar!MyDate
You now need to put this all together in however you have your system set up
so that you open the calendar form, select the date then run the query.

--
                                       PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
                             resource@pcdatasheet.com
                                www.pcdatasheet.com

> I have a simple application and want to select a date from a calendar and run
> a parameter query. how do i do that? Thanks
 
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.