I have a form that allows the user to choose and open a report from a
drop down box based on the semester they choose from an option box.
Option 1-3 are Spring, Summer and Fall and each semester has their
specific dates. This is what I currently have on the preview button if
option one is selected and continues for the rest of the options with
the appropriate dates.
If (FraWIASemesters = 1) Then
' Preview all records.
DoCmd.OpenReport strReportName, acViewPreview, "", "[Date]
Between #12/16/2004# And #5/15/2005#"
End If
Summer: Between #5/16/2005# And #8/15/2005#"
Fall: Between #8/16/2005# And #12/15/2005#"
How can I set a date range but for current year so that I don't have to
go in and change it on a regular basis?