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 / Modules / DAO / VBA / May 2008

Tip: Looking for answers? Try searching our database.

calendar Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon - 29 May 2008 12:54 GMT
According to documentation EndDateCalendar.Value = Date will display the
current date in the calendar control. I have the control bounded to a field.
I'm not sure how or where to place this statement to get it to work properly.
Any help would be greatly appreciated.

Jon
Linq Adams - 29 May 2008 13:21 GMT
If the calendar is bound to a field, I assume you only want the calendar set
to the current date if you're entering a new record, so maybe something like
this:

Private Sub Form_Current()
If Me.NewRecord Then
   EndDateCalendar.Value = Date
Else
   EndDateCalendar.Value = Me.EndDateCalendar.Value
End If
End Sub

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

 
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.