OK, took me a while but I found it.
the basics of the SQL:
SELECT [tbl_Orig].[UniqueKey], (SELECT Count([tbl_Orig].[FieldToCount]) AS AutoNum
FROM [tbl_Orig]
WHERE ((([tbl_Orig].[UniqueKey])<=[tbl_Alias].[UniqueKey]))";") AS Total
FROM [tbl_Orig] AS [tbl_Alias]";"
my example:
SELECT (SELECT COUNT(tblStaff.RecID) AS AutonNum
FROM tblStaff
WHERE (((tblStaff.FirstName) <= tblT1.FirstName))";") AS Total, tblT1.FirstName
FROM tblStaff AS tblT1
ORDER BY tblT1.FirstName";"
my output:
Total FirstName
1 Dave
2 Duc
3 Ineke
4 Jyothi
5 Owen
6 Paul
7 Robert
8 Ros
9 Siobhan
10 Terry
11 Tom
OK?
Dave