nika.duncan
Registered User.
- Local time
- Today, 03:25
- Joined
- Sep 23, 2013
- Messages
- 10
Hi all,
Having an issue that a need assistance with, first time posting and I am new to the coding as well. I am trying to use Access 2007 popup calendar to populate a combo box with a selected date. When I select the date on the calendar the above error appears. No sure how to fix it I have included the code below highlighting the line on which it errors out. Any help is welcomed.
Thanks.
Having an issue that a need assistance with, first time posting and I am new to the coding as well. I am trying to use Access 2007 popup calendar to populate a combo box with a selected date. When I select the date on the calendar the above error appears. No sure how to fix it I have included the code below highlighting the line on which it errors out. Any help is welcomed.
Thanks.
Code:
Private Sub Calendar9_Click()
'Set Date to the selected date and hide the clalendar.
[COLOR=Red]MAssBDate.Value = Calendar9.Value[/COLOR]
MAssBDate.SetFocus
Calendar9.Visible = False
End Sub
Private Sub MAssBDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Show Calendar and set it's date
Calendar9.Visible = True
Calendar9.SetFocus
'Set to today if UsrInfoBDate has no value
Calendar9.Value = IIf(IsNull(MAssBDate), Date, MAssBDate.Value)
End Sub
Last edited: