This multi-star problem is very perplexing to me
Overview:
Use a form to set beginning and ending date to supply a CROSS tab query with a date range. And use the cross tab query as the record source for a report setup to use a cross tab query.
When running the query alone, the query works fine. It has two parameters in it to fetch the start and stop dates from the form. Works fine.
My report is made to work with cross tab queries. It has several textboxes in the header and in the detail section. It has an open event that creates a record set of the supplied cross tab query. It is taken directly from the Getz, Litwin, and Gilbert Access book. It takes the results of the query and plugs them into the textboxes. Or does it??? This is the problem.
Actually, it does not. In the open event, there is a variable assignment - intColCount = rst.Fields.Count. that contains 0 after it runs.
I am not able to figure out why it contains 0. It should contain a number equal to the number of fields in the recordset. In this case, the crosstab query.
I hope this is clear enough to understand. Any help that you may be able to provide would be very much appreciated.
One more thing, in case you're wondering why a cross tab, the reason is we need to run a report for one or more employees and have the format list the employee name in the 1st column of the report and next to the name, a column for each day of the week, S thru Sat, with a total at the end. Like a spreadsheet. If you have an idea on how to do this without a crosstab query, I'm listening!
Thanks again.
Overview:
Use a form to set beginning and ending date to supply a CROSS tab query with a date range. And use the cross tab query as the record source for a report setup to use a cross tab query.
When running the query alone, the query works fine. It has two parameters in it to fetch the start and stop dates from the form. Works fine.
My report is made to work with cross tab queries. It has several textboxes in the header and in the detail section. It has an open event that creates a record set of the supplied cross tab query. It is taken directly from the Getz, Litwin, and Gilbert Access book. It takes the results of the query and plugs them into the textboxes. Or does it??? This is the problem.
Actually, it does not. In the open event, there is a variable assignment - intColCount = rst.Fields.Count. that contains 0 after it runs.
I am not able to figure out why it contains 0. It should contain a number equal to the number of fields in the recordset. In this case, the crosstab query.
I hope this is clear enough to understand. Any help that you may be able to provide would be very much appreciated.
One more thing, in case you're wondering why a cross tab, the reason is we need to run a report for one or more employees and have the format list the employee name in the 1st column of the report and next to the name, a column for each day of the week, S thru Sat, with a total at the end. Like a spreadsheet. If you have an idea on how to do this without a crosstab query, I'm listening!
Thanks again.