K
KathyW
Is there a limit of the number of sort items one can have within a query. We
are using MS Access 2002. I am using the following query but getting
incorrect sort results. The 6th sort item is not sorting correctly. See
query below...
SELECT [regulation parents].*, [pseudo countries].[Region name]
FROM [pseudo countries] RIGHT JOIN [regulation parents] ON ([pseudo
countries].CountryCode = [regulation parents].CountryCode) AND ([pseudo
countries].RegionCode = [regulation parents].RegionCode)
WHERE ((([regulation parents].RegulationType)>0) AND (([regulation
parents].RegID)=21401) AND (([regulation parents].CountryCode)="lt")) OR
((([regulation parents].RegID)=23426) AND (([regulation
parents].CountryCode)="lt")) OR ((([regulation parents].RegID)=21404) AND
(([regulation parents].CountryCode)="lt")) OR ((([regulation
parents].RegID)=21406) AND (([regulation parents].CountryCode)="lt"))
ORDER BY [regulation parents].HeadingName,
[regulation parents].RegulationType,
[pseudo countries].[Region name],
[regulation parents].SortTitle,
[regulation parents].RegID,
[regulation parents].LanguageSort,
[regulation parents].ReferenceDate DESC;
Thanks.
Kathy
are using MS Access 2002. I am using the following query but getting
incorrect sort results. The 6th sort item is not sorting correctly. See
query below...
SELECT [regulation parents].*, [pseudo countries].[Region name]
FROM [pseudo countries] RIGHT JOIN [regulation parents] ON ([pseudo
countries].CountryCode = [regulation parents].CountryCode) AND ([pseudo
countries].RegionCode = [regulation parents].RegionCode)
WHERE ((([regulation parents].RegulationType)>0) AND (([regulation
parents].RegID)=21401) AND (([regulation parents].CountryCode)="lt")) OR
((([regulation parents].RegID)=23426) AND (([regulation
parents].CountryCode)="lt")) OR ((([regulation parents].RegID)=21404) AND
(([regulation parents].CountryCode)="lt")) OR ((([regulation
parents].RegID)=21406) AND (([regulation parents].CountryCode)="lt"))
ORDER BY [regulation parents].HeadingName,
[regulation parents].RegulationType,
[pseudo countries].[Region name],
[regulation parents].SortTitle,
[regulation parents].RegID,
[regulation parents].LanguageSort,
[regulation parents].ReferenceDate DESC;
Thanks.
Kathy