B
Bob Quintal
Can someone correct the following expression so that my database
comes up with a list of forms issued and the highest number issued
for each?
SELECT [ID], [Form_Number] & " " & [Ending_Number] FROM
DocumentsIssued ORDER BY [Form_Number] & ", " & [Ending_Number];
Currently, the above is generating all the forms and all the
ending numbers. It also includes forms that have not been issued
with the Ending Number of 0.
To be clear, here's a sample of what I get, followed by what I
need:
Form A 15
Form A 30
Form A 90
Form B 10
Form C 30
Form C 60
What I need is:
Form A 90
Form B 10
Form C 60
Thanks in advance for your help!
SELECT [ID], [Form_Number] & " " & max([Ending_Number]) FROM
DocumentsIssued
GROUP BY [ID], [Form_Number] & " " & max([Ending_Number])
ORDER BY [ID],[Form_Number];