#RECORD_ID# within a subform
Posted: Sun Jul 04, 2021 12:10 pm
Hi brains trust,
I have a form with a subform, and I'm trying to use the subform's record id to drive a SQL statement for a select object. But #RECORD_ID# appears to return the same value for all rows in the subform.
In the screen shots below I have done a basic test to just return the record id for the given row in the select object. This is the sql code on the relevant select object:
And it renders the record id of the first row in the subform, for every row in the subform.
If I change it to a display object with the exact same SQL as above, it shows different IDs per record, as I'd expect.
Can anyone see what I'm doing wrong?
Thanks in advance.
I have a form with a subform, and I'm trying to use the subform's record id to drive a SQL statement for a select object. But #RECORD_ID# appears to return the same value for all rows in the subform.
In the screen shots below I have done a basic test to just return the record id for the given row in the select object. This is the sql code on the relevant select object:
Code: Select all
SELECT '#RECORD_ID#', '#RECORD_ID#'
If I change it to a display object with the exact same SQL as above, it shows different IDs per record, as I'd expect.
Can anyone see what I'm doing wrong?
Thanks in advance.