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!

URGENT: Inserting Crosstab query into a report

Status
Not open for further replies.

brainiac

Technical User
Jun 4, 2001
7
AU
I'm pretty new at this and have been given the task of creating a database to catalogue and create reports based on enquiries received from each state by the company, nature of the enquiry, date received, date solved, turnaround times, etc. T'was all going well till it got to automating reports from the crosstab queries.

I have 3 crosstab queries that look up from one main query.they all have the same type of data but run off different time intervals (ex: enquiries received during a given month {Opened between startdate and enddate}, enq's completed during a month {Closed between startdate and enddate}, enquiries unsolved at the end of the month {Not closed at Enddate})

Rows:Nature of enquiry (5 types), Columns:States

Since the company does not receive or complete enquiries from all states in any given month, the number of columns in the crosstab queries vary.

3 questions:

1) I have tried a custom form to get user input (startdate, enddate) for the crosstab queries but xtabqueries will not run with the usual expression [forms]![formname]![textboxname]. How can I get user input for these xtabqueries??

2) How can I either:
a)Fix the xtabqueries so that the same number and name of states always appear even if there is no value for them in any given month, so that the same report can be run every month?
b) Make the column headings in the reports "dynamic" so that they always reflect the number and name of the states in the crosstab queries?

3) Does anyone have any suggestion as to a better way of running this type of report, or even better, examples!!????

An early response would be appreciated since the due date for this project is in a week or so.

Thanks..
 
Please see this thread:

thread181-89876 Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top