Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Let a calendar open and indicating on today's date?

Status
Not open for further replies.

catty1160

Technical User
Mar 10, 2003
38
0
0
US
I remember someone had the same question, just can not find the string now. I have a calendar (using the active control) in a form. I would like the calendar show up in the current date and month every time the form is opened for a new record entry. How do I do it? Thanks.
 
In the Form's On_Load event put

If IsNull(CalendarControlName) Then
CalendarControlName = Date()
End If



QED.



'ope-that-'elps.

G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.
 
QED'

Good. Appreciated. How about if I just need the calendar to present in the current month, but no indication of the date (will let the user to pick up the date). How to write the code?

Catty

 
Not a code issue - as far as I know - I don't think a Calendar control can just display a month without picking a date.

If it can - you tell me how and I can provide the code to make it happen.


;-)

G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top