sorting per table when adding a new table new number 1 item

The Item column is in a secondary table that is linked to the primary table.

I want it to run numbers The form per table is

Add main table 1st time
The item column of the secondary table counts 1 and so on.

Add main table, 2nd time, count 1 again and so on.

Numbers only apply if they are in the same table.

It sounds that you are looking for a solution that is outlined in the post below.

Solved: NEED TO ADD SL NO TO THE ROWS TO PDF REPORT OF FIL… - Google Cloud Community