L
Linda
Hi,
I have a few pop up calendars and I would like it to default to todays date.
Here is my code:
Private Sub duedate_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
cal.Visible = True
cal.SetFocus
If Not IsNull(duedate) Then
cal.Value = duedate.Value
Else
cal.Value = DATE
End If
End Sub
Private Sub cal_Click()
duedate.Value = cal.Value
duedate.SetFocus
cal.Visible = False
End Sub
It seems as though it is defaulting to the date I created the calendar on
the form. I have ValueIsNull property set to yes.
Right now the calendar comes up with the month of March.
Am I missing something?
Thanks
Linda
I have a few pop up calendars and I would like it to default to todays date.
Here is my code:
Private Sub duedate_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
cal.Visible = True
cal.SetFocus
If Not IsNull(duedate) Then
cal.Value = duedate.Value
Else
cal.Value = DATE
End If
End Sub
Private Sub cal_Click()
duedate.Value = cal.Value
duedate.SetFocus
cal.Visible = False
End Sub
It seems as though it is defaulting to the date I created the calendar on
the form. I have ValueIsNull property set to yes.
Right now the calendar comes up with the month of March.
Am I missing something?
Thanks
Linda