K
KRB
I have gone to this following website to setup my calendar in my form:
http://www.fontstuff.com/access/acctut09.htm
Now when I go to my form and click on my calender to pop-up I get an Error:
Run Time Error "424" Object Required. I'm not for sure on why I am getting
this error. Below is my code I have written for it so far and any advice
would be Greatly Appreciated.
Private Sub Training_Date_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(Training_Date) Then
ocxCalendar.Value = Training_Date.Value
Else
ocxCalendar.Value = Date
End If
End Sub
http://www.fontstuff.com/access/acctut09.htm
Now when I go to my form and click on my calender to pop-up I get an Error:
Run Time Error "424" Object Required. I'm not for sure on why I am getting
this error. Below is my code I have written for it so far and any advice
would be Greatly Appreciated.
Private Sub Training_Date_MouseDown(Button As Integer, Shift As Integer, X
As Single, Y As Single)
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(Training_Date) Then
ocxCalendar.Value = Training_Date.Value
Else
ocxCalendar.Value = Date
End If
End Sub