Calendar Control

KYLE_DELUCA

Registered User.
Local time
Today, 00:36
Joined
Mar 20, 2003
Messages
11
Calender Control

Good day,

I am new to access and I am using the calender control in my database.

what do I have to add to the following to get the calender to open up with today's date?

Thanks in advance.

Private Sub Calendar_DblClick()
On Error Resume Next

Dim datRet As Date

datRet = Me.Calendar

DoCmd.Close acForm, Me.Name

Screen.ActiveControl = datRet
 
Not sure how you are opening your calendar but if it is named Calendar then Me![Calendar].Value = Date should do the trick.

hth,
Jack
 
Help

Hello,

I am opening the calender with the following. Where do I put that code?

Thanks in advance

Private Sub tbxDATE_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmCalendar", , , , , , Screen.ActiveControl.Value
End Sub
 

Users who are viewing this thread

Back
Top Bottom