Column headings in a crosstab query

C

Chris

I have a Xtab query...the Row fields come from a lookup table with an ID
number...the fields correctly display the name of the field, not the ID
number. The column fields similarly come from a lookup table (not the same
one) but headings of the columns show the ID number, not the text !! As in:

CASE TOTAL OF CASE 1 4 5 7

C/S 8 6 2
R/O FB foot 3 1
3
R/O FB finger 2 1 1


I need it to look like this:

CASE TOTAL OF CASE GA Reg LA Sed

C/S 8 6 2
R/O FB foot 3 1
3
R/O FB finger 2 1 1


....where the column headings are the actual words linked to the numbers in
the lookup table.

Anybody?

Cheers
Chris (novice)
 
J

JaRa

You could try to join the headers table to the IDs and instead of making the
cross on the ID field, you should use the name field of the header table.

- Raoul
 
C

Chris

I didn't quite get what you suggested, but it gave me an idea...to create a
query including the main table and the lookup table, then making the xtab
from that....and it worked!! Thanks mate

Chris
 
J

JaRa

That's what i meant LOL

- Raoul

Chris said:
I didn't quite get what you suggested, but it gave me an idea...to create a
query including the main table and the lookup table, then making the xtab
from that....and it worked!! Thanks mate

Chris
 
C

Chris

OK next question

in that same xtab how do i get totals for the columns at the bottom of the
columns??

Chris
 
J

JohnFol

You can't, you'll have to do that on the form / report used to display the
results.
 
D

Duane Hookom

Or create a crosstab with must the totals and then union the two crosstabs
together.

I would use the report method as suggested by John.
 

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