crosstab qry as report source breaks Access2007

  • Thread starter backToASP via AccessMonster.com
  • Start date
B

backToASP via AccessMonster.com

We have 3 reports whose record sources are crosstab queries. All have work
fine on the pc's running Access2003. But, the one pc running Access2007
doesn't like the crosstab queries as the report source. We don't get an
error - only the dreaded 'Access has encountered a problem and has closed...'
It totally shuts down the access application. I stepped through the little
bit of onOpen code while opening the reports and all works fine. I open the
crosstab query and it opens just fine. To test the theory that it is a
crosstab source problem, I tried to recreate one of the reports and when any
crosstab query was selected as the source there were no fields to choose from.
Is this a known problem in Access2007 or some new setting I'm not aware of?
Any suggestions appreciated.
 
G

Guest

There is at least one method/solution for creating crosstab reports without
first knowing any of the field names and without having to assign control
sources at run-time.
 
B

backToASP via AccessMonster.com

Thanks to both of you for the info - I assumed it was an Access 2007 issue
because the 2003 versions were running just great. I can make a pretty easy
fix - I can name my columns because the reports are designed for current year
and previous year columns of data only. Then I can change my two column
headings in the report to be lable fields to display the selected year and
previous year from the Report Selection Form.

Thanks again

Duane said:
Allen,
That solution is one I always recommend for date intervals since dates are
actually numeric. The one I had in mind is hosted over at Roger's site:

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Cross Tab'

This solution uses much less code and is much more efficient than the
solution that assigns control sources at run-time.
Don't tease, Duane! :)
[quoted text clipped - 37 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top