G
Guest
Hi,
I'm trying to open an instance of a calendar form on clicking on the "Date
Out" button of an equipment loans form. The code I have used is as per
below. However, on clicking the Date Out button, the calendar form opens but
then immediately closes again. I imagine I'm doing something blindingly
obviously wrong but would very much appreciate help on this.
Thanks
Private Sub cmdDateOutEdit_Click()
Dim calendar1 As Form_frmCalendar
Set calendar1 = New Form_frmCalendar
calendar1.Visible = True
End Sub
I'm trying to open an instance of a calendar form on clicking on the "Date
Out" button of an equipment loans form. The code I have used is as per
below. However, on clicking the Date Out button, the calendar form opens but
then immediately closes again. I imagine I'm doing something blindingly
obviously wrong but would very much appreciate help on this.
Thanks
Private Sub cmdDateOutEdit_Click()
Dim calendar1 As Form_frmCalendar
Set calendar1 = New Form_frmCalendar
calendar1.Visible = True
End Sub