It looks like this. Not what I need
RaceNo Name Atlanta Daytona Rock Vegas
1 CHRIS Jamie McMurray
1 JIM Bobby Labonte
1 JORDAN Rusty Wallace
1 STEVE Dale Earnhardt Jr.
1 TOM Elliott Sadler
2 CHRIS Jamie McMurray
2 JIM Greg Biffle
2 JORDAN Jamie McMurray
2 STEVE Rusty Wallace
2 TOM Dale Jarrett
3 CHRIS Dale Jarrett
3 JIM Greg Biffle
3 JORDAN Bobby Labonte
3 STEVE Kurt Busch
3 TOM Ryan Newman
4 CHRIS Bobby Labonte
4 JIM Elliott Sadler
4 JORDAN Kevin Harvick
4 STEVE Bobby Labonte
4 TOM Jimmie Johnson
When I use RaceNo in the Columnhead it looks like this
Name 1 2 3
CHRIS Jamie McMurray Jamie McMurray Dale Jarrett
JIM Bobby Labonte Greg Biffle Greg Biffle
JORDAN Rusty Wallace Jamie McMurray Bobby Labonte
STEVE Dale Earnhardt Jr. Rusty Wallace Kurt Busch
TOM Elliott Sadler Dale Jarrett Ryan Newman
The Races Go Daytona Rock Vegas
When I use the Nickname It looks like this
Name LasVegas Daytona Rock
CHRIS Dale Jarrett Jamie McMurray Jamie McMurray
JIM Greg Biffle Bobby Labonte Greg Biffle
JORDAN Bobby Labonte Rusty Wallace Jamie McMurray
STEVE Kurt Busch Dale Earnhardt Jr. Rusty Wallace
TOM Ryan Newman Elliott Sadler Dale Jarrett
Daytona Should be Race 1, Rock 2nd and Las Vegas is 3rd. When I use
NickName
instead of raceno it goes in alphabetical order.
Hope This Helps
Thanks for your continued support
Chris
Duane Hookom said:
What happens if you try:
TRANSFORM Max(Finish.DriverId) AS MaxOfDriverId
SELECT Picks.RaceNo, Picks.Name
FROM Schedule INNER JOIN (Driver INNER JOIN (Picks INNER JOIN Finish ON
Picks.Car = Finish.Car) ON Driver.DriverId = Finish.DriverId) ON
(Schedule.RaceNo = Picks.RaceNo) AND (Schedule.RaceNo = Finish.RaceNo)
GROUP BY Picks.RaceNo, Picks.Name
PIVOT Schedule.NickName;
--
Duane Hookom
MS Access MVP
My Current SQL VIEW IS
TRANSFORM Max(Finish.DriverId) AS MaxOfDriverId
SELECT Picks.Name
FROM Schedule INNER JOIN (Driver INNER JOIN (Picks INNER JOIN Finish ON
Picks.Car = Finish.Car) ON Driver.DriverId = Finish.DriverId) ON
(Schedule.RaceNo = Picks.RaceNo) AND (Schedule.RaceNo = Finish.RaceNo)
GROUP BY Picks.Name
PIVOT Schedule.NickName;
I can post the query results and the QBE design grid if you like.
Thanks
Chris
:
I'm not sure why you add RaceNo to the "Criteria of the columnrow".
What is your current SQL view?
--
Duane Hookom
MS Access MVP
--
I tried putting RaceNo in the Criteria of the columnrow as ascending.
It
did
not work. I even tried making a fourth column and used WHERE and
EXPRESSION
to get the sort order. Even tried adding to the SQL view. Wasn't
sure
what
I
was doing. Any help would be great.
Chris
:
Have you tried adding RACENO to the query grid and sorting by it?
Have
you
tried anything else that you would like to share?
BTW: Name is probably the worst name you can give any object
(table,
field,
variable,...) Every object has a Name property which can be very
confusing.
Try create a new blank report based on your Name table and add a
text
box
with a control source of:
=[Name]
Save the report as "rptNameDemo" and preview the report. What do
you
see
in
the text box?
--
Duane Hookom
MS Access MVP
--
Hello I have a crosstab query that I would like have sorted based
on
criteria
from another field. The Row Heading is from a table called Name
and
the
field
is NAME. The Column Heading Is NickName taken from a table called
Schedule.
The Value is from another field called Driver from a table called
Picks.
It
looks graet. I just would like to sort the cloumn heading with a
field
called
RACENO ascendng. This field is in both the Schedule and Picks
Table.
Any
SUggestions.
Thanks
Chris