Hi,
I am trying to get the Unique Record ID for the record that is AutoPrimed on Insert and for the record when being changed.
I am using the code 
tir:ihid = p_web.formatsettings.recordid    BEFORE the header....
(PrimeAutoInc is clicked on as well as PrimeAutoInc even if not needed is checked).
this does NOT work at the LookupRelated Records Embed - there is no value yet.
I see that the RecordID is passed to the form 
Questions:
1. Is this the correct way to do it?  ( it seems like it may not get the recordID for the current form if there are several forms open...)
2. Is there another way to get it BEFORE the LookupRelatedRecords embed?
Thanks,
Ron Jolda