* Problems with a Free BMD query

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
susanpenter
Platinum
Posts: 39
Joined: 06 Apr 2012 09:05
Family Historian: V6.1
Location: Leeds, West Yorkshire, UK
Contact:

Problems with a Free BMD query

Post by susanpenter » 28 Dec 2014 15:00

I have been trying to set up a simple query as follows:

Add if %INDI.BIRT[1].DATE% was later than 1837
Exclude if %INDI.BIRT[1].DATE% was later than 1915
Add if %INDI.BIRT[1].SOUR[1]>% is null

So in theory anyone born after 1837 but before 1915 without a source for their birth should show however when run individuals from as late as 1969 birth are being brought up.

Does anyone have a clue why this may not be working?

Thanks
Susan Pearson
Researching: Penter, Todd, Hitch, Sowry

avatar
TimTreeby
Famous
Posts: 168
Joined: 12 Sep 2003 14:56
Family Historian: V6.2
Location: Ogwell, Devon
Contact:

Re: Problems with a Free BMD query

Post by TimTreeby » 28 Dec 2014 15:05

It is because your last line is adding everyone who has No source for their birth, irrespective of when they where born.
If you change the last line to say Exclude if not null then should do what you want. have just played and can't do Exclude if not Null for sources so try changing the order. Thus

Add if %INDI.BIRT[1].SOUR[1]>% is null
Exclude if %INDI.BIRT[1].DATE% was earlier than 1837
Exclude if %INDI.BIRT[1].DATE% was later than 1915
Last edited by TimTreeby on 28 Dec 2014 15:13, edited 1 time in total.

avatar
Jenny143
Gold
Posts: 25
Joined: 06 Oct 2009 13:14
Family Historian: V6

Re: Problems with a Free BMD query

Post by Jenny143 » 28 Dec 2014 15:12

Try using exclude unless birth date was less than 1915 rather than exclude if.
Jenny

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

Re: Problems with a Free BMD query

Post by tatewise » 28 Dec 2014 20:12

On the assumption you will be wanting to check other Events such as Marriage and Death using FreeBMD, then I would advise using a Fact Query rather than an Individual Query.

Start from the Standard Query for All Facts and Save as Custom Query with your chosen name.

The Row filters would then be:
Add if =FactLabel(%FACT%) matches Birth
Exclude unless %FACT.SOUR[1]>% is null
Exclude if %FACT.DATE% was earlier than 1837
Exclude if %FACT.DATE% was later than 1915

You might also want to add:
Exclude if %FACT.DATE% is null

Then by simply changing the first filter to Marriage or Death, etc, you can report on any Fact.
You could even make the Value a Parameter and choose when running the Plugin.

The real hidden benefit is for Family Facts such as Marriage, which are tricky with an Individual Query when there are multiple Marriages.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply