Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    Anaheim, California, USA
    Posts
    556
    Thanks
    17
    Thanked 2 Times in 2 Posts

    Calendar opening on Today (2002/SP2)

    I have an Access Calendar control that opens on my form, showing the entire month, that I would like to have open up to the current month and year. How do I do that? Thank you.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Calendar opening on Today (2002/SP2)

    Is the calendar control bound to a field in the record source of the form? If so, it will open to the value of the field in the first record.

    If the calendar control is unbound, you can set its value in the On Load (or On Open) event of the form:

    Private Sub Form_Load()
    Me.calCalendar.Value = Date
    End Sub

    where calCalendar is the name of the control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •