I don't know where you are applying the filter for the report. It can be
either in the query that is the report's recordset or in can be in the report
itself. The best way to do what you want is to create a from where you enter
the dates, then use the form to run both the update query and the report.
Both queries (I am assuming you are filtering the report in the query) should
then reference the form to get the dates. So the criteria for each date
shoud reference the form something line:
[Forms]![YourFormName]![FormControlName]
SCB said:
Thanks a lot, everuthing is working.
I just had one more question, I hope you can help me again.
I have made the update to query. I can also filter the dates I want it to
change.
I have made a macro to run the update query-change the expiration date by
adding one year-and to open a report to show the expiration dates.
Problem is the to report that opens I have also a filter for the exp.
dates,and it asks me to enter the filter criteria.
I wanted it to open the report with the dates that I have already filtered
when running the update to query.
Is this possible?
I hope to have explained myself, it's difficult.
I hope you can help me.
Thanks again!