I have a main form the user clicks a command button (find referred date) and it opens a calendar form. It then takes the date the user chooses and then puts into the referred date field on the calendar form. The referred date field on main form needs to display the date. The 1st records works fine. The next record doesn't capture the date. Referred date is a field in a table. And the table is accessed within the form with different fields. Any throughts on this greatly appreciated!
This is my code for the calendar form:
Private Sub calMyCalendar_Click()
If Me.Dirty = True Then
Me.Dirty = False
End If
MsgBox "Calendar clicked"
Me![referredDate] = calMyCalendar.Value
End Sub
This is my code for the calendar form:
Private Sub calMyCalendar_Click()
If Me.Dirty = True Then
Me.Dirty = False
End If
MsgBox "Calendar clicked"
Me![referredDate] = calMyCalendar.Value
End Sub