Hi again,
The link to the database journal had the right idea, thanks! The code I have now is as follows:
SELECT count(*) as nm_record,t.tx_product, t.am_notl
FROM tbl_Import t inner join tbl_Import t1
ON t.tx_product >= t1.tx_product
GROUP by t.tx_product,t.am_notl
ORDER by...