G
Guest
I have a reports form that allows the user to select certain reports based on
a date range. The to and from boxes are unbound text boxes:
txtTo
txtFrom
I have a double click event that opens the calendar form which is activex.
The calendars code is:
Option Compare Database
Private Sub actlCalendar_DblClick()
Dim dtmdate As Date
dtmdate = Me.ActiveControl.Value
DoCmd.Close acForm, Me.Name
Screen.ActiveControl.Value = dtmdate
End Sub
The code for the double click event is:
Private Sub txtFrom_DblClick(Cancel As Integer)
DoCmd.OpenForm "calendar"
End Sub
The problem is, when the calendar opens it retains the date that I made the
calendar, March 14, 2006. So, when I click on it today, it still shows March
14th. I would like it to shoe the current day, that way I don't have to
change the date everytime.
Any help would be appreciated.
a date range. The to and from boxes are unbound text boxes:
txtTo
txtFrom
I have a double click event that opens the calendar form which is activex.
The calendars code is:
Option Compare Database
Private Sub actlCalendar_DblClick()
Dim dtmdate As Date
dtmdate = Me.ActiveControl.Value
DoCmd.Close acForm, Me.Name
Screen.ActiveControl.Value = dtmdate
End Sub
The code for the double click event is:
Private Sub txtFrom_DblClick(Cancel As Integer)
DoCmd.OpenForm "calendar"
End Sub
The problem is, when the calendar opens it retains the date that I made the
calendar, March 14, 2006. So, when I click on it today, it still shows March
14th. I would like it to shoe the current day, that way I don't have to
change the date everytime.
Any help would be appreciated.