I have a report with subforms displaying bookings. The main report is the school, the subreport/suform is the bookings.
However I only want to see the Schools that have a booking within a date range.
Code:
Private Sub btnEndYear_Click()If Not IsNull(Me.txtFromDate) And Not IsNull(Me.txtUntilDate) Then
DoCmd.OpenReport "rptYearLetter", acViewPreview, , "BookingDate >= #" & Me.txtFromDate & "# and BookingDate <= #" & Me.txtUntilDate & "#"
Else
MsgBox "Please enter the between dates"
End If
End Sub
I have this to show BookingDate on the main report but because I can't have that on the main report and it is on the subform - how do I get it to filter/where. Is this possible?