Using Access 2002
I am writing a report which draws data from several different tables. I
can't link all the tables in a query, as some can not be related without
truncating the data. I plan to use sub-queries and sub-reports to
filter and display the data in the unrelated tables in my report. The
common information is a user-inputed date range.
I want to avoid having the user prompted for the [Report_Start_Date] and
[Report_End_Date] variables repeatedly. Somehow I need to capture those
dates as entered, so I can refer to them for all subsequent queries and
sub-reports which are part of the complete report.
I have written one query, based on the table which contains most of the
information I need. I put a Prompt in the Date field which reads:
Between [Report_Start_Date] and [Report_End_Date].
This filters that query as desired, but where do I go from here?
How do I capture those two date variables for reference by other
objects?
Once I have done that, how do I then re-use that data to filter other
objects (unbound text boxes, queries, etc.?
Also, I would like the report to have something in the header like:
From [Report_Start_Date] to[Report_End_Date]. When I put an unbound
text box on the report, I can only see the Expression Builder as a tool
for customizing that control. What is the most optimum way to use the
expression builder to cause the control to display the desired "stored"
variables?
Please go easy on me! I'm just learning Visual Basic, and am trying
hard, but I need just a touch of explanation, and TLC if you can!
Thank you!
BlackFireNova - BFNMULTIPLEDATEPROMPTS
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!