* Searching for couples

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
ISAUNDERS
Newbie
Posts: 1
Joined: 12 May 2023 13:57
Family Historian: V7
Location: Watlington

Searching for couples

Post by ISAUNDERS » 12 May 2023 14:49

Hi,

I am new to FH7. I think I need to create a custom query of the family type.

What I would like to do is search for particular couples: "John and Ann", "William and Elizabeth", that sort of thing. Initially, I'd just like to list matching couples - once I've got the hang of it I will add limiting dates, etc. to the search. At the moment, however, I can't work out how to begin (apart from it being a custom family query!).

I'd like to be able to use the query for any pair of first names, so these need to be "parameters" (is that right?) that I am prompted for when I run it.

Can anyone please help me with the syntax of the basic query, please?

Many thanks!

Ian Saunders

User avatar
Valkrider
Megastar
Posts: 1533
Joined: 04 Jun 2012 19:03
Family Historian: V7
Location: Lincolnshire
Contact:

Re: Searching for couples

Post by Valkrider » 12 May 2023 15:06

Ian

Attached is a query that I use it just currently takes first names of both partners. It should get you started.
Husb & Wife First Names.fhq
(3.6 KiB) Downloaded 30 times

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

Re: Searching for couples

Post by tatewise » 12 May 2023 15:49

Welcome to the FHUG Ian.

The Query posted by Valkrider is an Individual type of Query and works well, but only for the 1st partnership of each person.

It does show how to enter Parameters for the Names and how to select FIRST names and SURNAMES.

However, your approach of using a Family type of Query is better because it will search all couples.
Use the following Data References for the husband and wife names:
%FAM.HUSB>NAME:FIRST%
%FAM.HUSB>NAME:SURNAME%
%FAM.WIFE>NAME:FIRST%
%FAM.WIFE>NAME:SURNAME%

Do you need to cater for any same-sex partnerships?

BTW: In the Query Columns tab have you explored the Fields pane on the left?
That lets you compose Data References interactively.
But first, in the box below that pane click the small black triangle and in the drop-list tick Show Both in Box.
Now in the Fields pane click the [+] next to Husband, then next to Name, and finally click FIRST.
That should show the same Data Reference in the box as I've given you above and can be added to the Columns.
See FHUG Knowledge Base > An Overview of Queries for further advice.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply