Romio_1968
Member
- Local time
- Today, 03:22
- Joined
- Jan 11, 2023
- Messages
- 126
I have a continuous subform linked to a query that adds records to a table
Here is the code of the query
Title_IDFK is the bonding control with the parent form.
After filling the control with Author_Name, Title_IDFK, Author_IDFK and Timestamp are passed to the table and a new record is opened.The user may introduce as many authors he wants (0 to n) under the same Title_IDFK until he closes the form.
Up to here, all is fine.
I need that Rank field on the table (and control on the Subform) to be filled too, starting from 1 in the first record, up to n, where n is the total number of authors saved under the same Title ID.
The Rank will restart at 1 at the next set of records.
If you please give me some help on this.
Thank you
Here is the code of the query
Code:
SELECT
TAJunction.Title_IDFK,
TAJunction.Author_IDFK,
TAJunction.Join_ID,
Author.Author_Name,
TAJunction.Timestamp,
TAJunction.Rank
FROM Author
INNER JOIN TAJunction ON Author.Author_ID = TAJunction.Author_IDFK;
Title_IDFK is the bonding control with the parent form.
After filling the control with Author_Name, Title_IDFK, Author_IDFK and Timestamp are passed to the table and a new record is opened.The user may introduce as many authors he wants (0 to n) under the same Title_IDFK until he closes the form.
Up to here, all is fine.
I need that Rank field on the table (and control on the Subform) to be filled too, starting from 1 in the first record, up to n, where n is the total number of authors saved under the same Title ID.
The Rank will restart at 1 at the next set of records.
If you please give me some help on this.
Thank you