I have a query that runs from a form. In the form I have the option for a user to enter a From-Thru date to print to a report based on the From-Thru dates they entered on the form. My form is called frmSelectResolutionRpt my fields on the form are RevDenDate and RevDenDateThru. WHen I use this in the criteria portion of my query I get mixed results. If one of my records does not have a date entered in the field in my table when user enters a date range then they get those dates there entered but also any records that
have a date missing. If the user enters a specific range then I only want records with dates that fall in between what they have entered, not records with no date as well.
How can I set my criteria in my query to get the results I need. Also if they do not enter any date in the From-Thru selections on the form then I want all records to display.
(>=[forms]![frmSelectResolutionRpt]![RevDenDate] Or Like [forms]![frmSelectResolutionRpt]![RevDenDate] & "*" Or Is Null) And (<=[forms]![frmSelectResolutionRpt]![RevDenDateThru] Or Like [forms]![frmSelectResolutionRpt]![RevDenDateThru] & "*" Or Is Null)
have a date missing. If the user enters a specific range then I only want records with dates that fall in between what they have entered, not records with no date as well.
How can I set my criteria in my query to get the results I need. Also if they do not enter any date in the From-Thru selections on the form then I want all records to display.
(>=[forms]![frmSelectResolutionRpt]![RevDenDate] Or Like [forms]![frmSelectResolutionRpt]![RevDenDate] & "*" Or Is Null) And (<=[forms]![frmSelectResolutionRpt]![RevDenDateThru] Or Like [forms]![frmSelectResolutionRpt]![RevDenDateThru] & "*" Or Is Null)