M
margaret
I have a query as follows:
SELECT tblSales.fairdate, tblSales.id, DCount("ID","tblSales","ID<=" & [id])
AS Sequence, tblControlFile.CheckNumber, [sequence]+[checknumber] AS ckno,
tblSales.game, tblSales.amount, ([amount]*0.2) AS ckamt
FROM tblSales, tblControlFile
WHERE (((tblSales.fairdate)>#9/15/2008#));
Right now the sequence is giving me the exact number that "ID" currently is.
I would like a count of how many "ID"'s have been pulled with this criteria.
So while I have ID's numbered 1 through 20, I may only have 5 that are
pulled and the sequence should then be 1 through 5.
SELECT tblSales.fairdate, tblSales.id, DCount("ID","tblSales","ID<=" & [id])
AS Sequence, tblControlFile.CheckNumber, [sequence]+[checknumber] AS ckno,
tblSales.game, tblSales.amount, ([amount]*0.2) AS ckamt
FROM tblSales, tblControlFile
WHERE (((tblSales.fairdate)>#9/15/2008#));
Right now the sequence is giving me the exact number that "ID" currently is.
I would like a count of how many "ID"'s have been pulled with this criteria.
So while I have ID's numbered 1 through 20, I may only have 5 that are
pulled and the sequence should then be 1 through 5.