begin with a parameter query on your table(s) where you put your data together and distinguish the year. There is no need to do any grouping there. You have to explicitly declare the parameter(s).
PARAMETERS [Please enter desired year] Short;
SELECT
TNXDTE
, PRTNUM
, NTXQTY
FROM TNX
WHERE...