* Fact Query for Electoral Roll help please

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
StevieSteve
Platinum
Posts: 46
Joined: 06 Jan 2014 18:04
Family Historian: V5

Fact Query for Electoral Roll help please

Post by StevieSteve »

Hi. I'm trying to create a query to find individuals who might be on the Electoral Roll

I have produced a result set with

Code: Select all

Date:			%FACT.DATE%
Fact: 			=FactLabel(%FACT%) matches Census or Residence
Fact Owner:		=FactOwner(%FACT%,1,MALES_FIRST)
Fact Owner Age:	=AgeAt(FactOwner(%FACT%,1,MALES_FIRST),%FACT.DATE%)
Place:       		%FACT.PLAC%
Address:   		%FACT.ADDR%
Now I want to get the sex of the Fact Owner

Looking at the Boys' Names standard Query, I have been trying to adapt

%INDI.SEX% matches male

but I can't seem to replace INDI with any combination of FactOwner(%FACT%,1,MALES_FIRST), % and =

Can someone let me know what I'm doing wrong please

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

Re: Fact Query for Electoral Roll help please

Post by tatewise »

Stevie, (if necessary) please use this FHUG User Control Panel > Profile to update your Family Historian Version that displays to the right of your postings.

The trick with getting fields like %INDI.SEX% is to use the =Field...(...) and =GetField...(...) functions.
e.g.
=FieldText( FactOwner(%FACT%,1,MALES_FIRST), 'INDI.SEX' )

BTW: A neater way to get the Fact Owner is =GetRecord(%FACT%) but remember for Family Facts such as Marriage this will return the Family Record not the Individual Husband Record.
e.g.
=FieldText( GetRecord(%FACT%), 'INDI.SEX' )

BTW: In this special case of SEX there is a useful FH V6 function where you choose what text you want for the SEX cases.
e.g
=Sex( GetRecord(%FACT%), "m", "f", "?" )
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
StevieSteve
Platinum
Posts: 46
Joined: 06 Jan 2014 18:04
Family Historian: V5

Re: Fact Query for Electoral Roll help please

Post by StevieSteve »

Call me a Luddite, Mike, but I still am on V5

Thanks for the answer, I'll try it out tonight when I get home
avatar
StevieSteve
Platinum
Posts: 46
Joined: 06 Jan 2014 18:04
Family Historian: V5

Re: Fact Query for Electoral Roll help please

Post by StevieSteve »

Forgot there was football on, but have given it a quick try this morning and works as hoped for

Thanks Mike
User avatar
jmurphy
Megastar
Posts: 715
Joined: 05 Jun 2007 23:33
Family Historian: V6.2
Location: California, USA
Contact:

Re: Fact Query for Electoral Roll help please

Post by jmurphy »

At the risk of further complicating things --

Re: filtering for gender -- Women might appear in electoral rolls in England because they qualify to vote in local elections, and their entries might persist after the death of their spouse. Someone who is collecting all of the entries for a family might want to locate those entries as well. I suppose a very thorough query might build in exclusions for dates before which women won't appear, but if you apply the more restrictive constraints across the entire dataset, you'll be missing search opportunities.
User avatar
AdrianBruce
Megastar
Posts: 2111
Joined: 09 Aug 2003 21:02
Family Historian: V7
Location: South Cheshire
Contact:

Re: Fact Query for Electoral Roll help please

Post by AdrianBruce »

jmurphy wrote:... exclusions for dates before which women won't appear, ...
That could be quite tricky. Without cross-checking, I think the story is quite complex. Somewhat accidentally, I think, some women did have the vote in the early years but one of the major Franchise Extensions "clarified" that women couldn't vote. Then they got the vote back for certain types of poll much later on, (e.g. local elections, as Jan says) - but with a different qualifying age from the men.
Adrian
avatar
StevieSteve
Platinum
Posts: 46
Joined: 06 Jan 2014 18:04
Family Historian: V5

Re: Fact Query for Electoral Roll help please

Post by StevieSteve »

Thanks for the thoughts.

I'd ruled out being able to code a query for finding widows and spinsters with a residence or census fact pre-1918, purely down to my skill-level.

Based on no evidence at all, I think the number of false hits I'd get would greatly outweigh the true ones
Post Reply