I have a report (ie. report1) that is based on a query (ie. query1). There is a date field that I have in the query. I also have a form that is used to input two dates for a range of dates. Using VBA, I know that it is possible to sort a record by a particular field in the report. However, is it possible to open the query and feed in my two dates from the form then have the query only display those dates? Then open the report that is based on the query.
Perhaps I am going about this the wrong way. However, ultimately, I need to filter the dates in report1 so that only dates within the range entered into the form are displayed. The only way I can think to do this is through query1 and since report1 is based on the query, report1 will only display the dates within the range.
If someone can give some kind of lead about how to feed the two dates into the query, I know how to do the rest. But if one would like to wax eloquent about the whole problem, that would be fine too.
Thanks in advance for the help.
Perhaps I am going about this the wrong way. However, ultimately, I need to filter the dates in report1 so that only dates within the range entered into the form are displayed. The only way I can think to do this is through query1 and since report1 is based on the query, report1 will only display the dates within the range.
If someone can give some kind of lead about how to feed the two dates into the query, I know how to do the rest. But if one would like to wax eloquent about the whole problem, that would be fine too.
Thanks in advance for the help.