* Individual details in fact query

Older V4 Queries please post for any version in the General Forum
Locked
avatar
ELM
Platinum
Posts: 35
Joined: 24 Sep 2003 14:44
Family Historian: V7

Individual details in fact query

Post by ELM » 06 Feb 2012 11:19

Is it possible to include details such as birth dates in a fact query.
I can select and display individuals attached to a fact but I can not include individual data in the report.
Does anyone know how to do this?

ID:5887

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Individual details in fact query

Post by Jane » 06 Feb 2012 11:43

Yes, but you need to use the =GetField() function, so for example

=GetField(FactOwner(%FACT%,1,MALES_FIRST),"%INDI.BIRT[1].DATE%")
will give you the Birth date of the first fact owner.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

Individual details in fact query

Post by tatewise » 06 Feb 2012 12:11

In the Fact Query simply add Columns such as:

Heading Expression
Owner =GetRecord(%FACT%)
Fact %FACT%
Date %FACT.DATE%
Place %FACT.PLAC%

Then on the Rows tab add a Filter such as:

Condition: Add if
Expression: =FactLabel(%FACT%)
Operator: matches
Value: Birth

Tick the Parameter option and enter a Label: such as Fact Name
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
ELM
Platinum
Posts: 35
Joined: 24 Sep 2003 14:44
Family Historian: V7

Individual details in fact query

Post by ELM » 06 Feb 2012 12:20

Thank you Jane. That is exactly what I was looking for.

Locked