View Full Version : Cross report


gerba
12-29-2008, 12:33 PM
Hi all!

I am already quite desperate:
I cannot get to create a report over two tables. To me it seems to be a cross query report, but this does not work.

As it is quite difficult to explain what I want to achieve, I attached a picture of my idea: one table storing cars, one table storing usage of cars. The report shall show the usage of the cars in the given way, having five colums per page and as many record lines as fitting each.
http://op.gb-s.at/idea.jpg

Please - if anybody has any idea, I would really appreciate your help!

Thanks a lot in advance!
Gerald

scalextric59
12-29-2008, 07:54 PM
I would design a report whose Recordsource is a query of tblCar. Then, I would add labels (instead of textboxes) in the detail section whose captions would be updated on Detail_Format by calling a function that performs a Do Until CarID = <current_carid>. In this way, you won't need a crosstab query.

gerba
12-30-2008, 08:44 AM
Hello!

Thank you for your quick answer.
In the meantime I got what I needed. :)

If anybody is interested in the solution, I've added the link to a ZIP file containing the database.
http://op.gb-s.at/carusage.zip

Wish you all the best!
Gerald

gerba
01-01-2009, 01:27 PM
Hi again!

It's driving me crazy... :(
Now the layout has changed and I need the cars as column headers and the usage entries as lines.
The problem is, that per page only the first 5 cars shall be printed, then on the next page the next 5 cars and so on.
Per page a maximum of 30 usage entries shall be printed per car. (see http://op.gb-s.at/idea2.jpg)

Do you have any idea, how can this be solved in ms access?

Gerald

gerba
01-04-2009, 02:04 PM
Hi guys!

I must have been a blockhead. http://www.tipmaster.com/images/smiletiniest.gif
The solution was quite easy.
If you like to have it, I again attached a zipped MDB file.
http://op.gb-s.at/carusage2.zip

Gerald