Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
US
Hi,
I am trying to sort this Crosstab query by Total Of Authorization Number. Is it possible? I include the SQL.Thanks in advance.
Ismail

TRANSFORM Count([qry -History Log Count].[Authorization Number]) AS [CountOfAuthorization Number]
SELECT [qry -History Log Count].AUTHPCP, [qry -History Log Count].[AUTH PCP NAME], Count([qry -History Log Count].[Authorization Number]) AS [Total Of Authorization Number]
FROM [qry -History Log Count]
GROUP BY [qry -History Log Count].AUTHPCP, [qry -History Log Count].[AUTH PCP NAME]
ORDER BY Right([Date],4) & "/" & Left([Date],2)
PIVOT Right([Date],4) & "/" & Left([Date],2);
 
You should ask this in the Access forum, since crosstab queries are not standards across all RDBMS's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top