Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic dates in a Report Header 1

Status
Not open for further replies.

erich13us

MIS
Feb 12, 2003
16
US
I have a report based on a crosstab query. The crosstab query in turn is based on a query that allows me to set a start and end date. I want the start and end dates in the header of my report. How do I get it there?
Erich
 
Erich,
Does the first query write the data to a table that the crosstab query is using. I had a similiar problem and just wrote the start and end dates to the table when the first query is ran. Then you can use the dates as row heading and include in your report.

Gerald
 
The question would be how do I write the start and end date to the new table and will I get a date for each row of data?
 
Erich,
The SQL would be:
Enter the Start Date You Want] AS ReportDate, [Enter the End Date You Want] AS EndDate

This prompt the user to enter the date and also would include the dates in the table you create from your first make table query. Then you would use that table for the crosstab quesry and yes you would get the dates on each line but you could pick and choose what to include when you build the string that contains the customer information.

Gerald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top