* Spouse ID in Individual display

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
gsward
Famous
Posts: 144
Joined: 11 Mar 2011 14:47
Family Historian: V7

Spouse ID in Individual display

Post by gsward » 05 Jan 2023 12:06

In my Record List for individuals, I show the first spouse's name where one exists. How can I also show the ID of that same spouse? I don't seem to be able to find the correct expression.

Thanks

User avatar
tatewise
Megastar
Posts: 27075
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Spouse ID in Individual display

Post by tatewise » 05 Jan 2023 12:29

Notice how the Individual's Record Id uses the function =RecordId() which is defaulting to =RecordId( %INDI% )

To get the 1st Spouse's Record Id use =RecordId( %INDI.~SPOU[1]>% )
i.e. Supply the data reference to the spouse's Individual record to the function.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
gsward
Famous
Posts: 144
Joined: 11 Mar 2011 14:47
Family Historian: V7

Re: Spouse ID in Individual display

Post by gsward » 05 Jan 2023 12:45

Thank you!

Post Reply