What exactly have you tried? What specifically was the result of each attempt?
What is the issue currently?
Did you consider a loop construct?
-you have 2 field names
-you have 10 deciles
eg psuedo code
Code:
For field1 to field2
For decile 1 to 10
construct and run your sql
SELECT Max([field]) AS Percentile
FROM
(SELECT TOP decile * 10 PERCENT [field]
FROM [Table]
ORDER BY [field] ASC);
print the values of field and decile
Next decile
Next field
Also, when you cross post tell the readers you have done so and provide a link
cross posted http://www.access-programmers.co.uk/...d.php?t=285149
and http://www.utteraccess.com/forum/ind...wtopic=2035397