Problem Querying Census Sources
Posted: 01 Jan 2012 22:01
Happy New Year everyone
I'm trying to write a query to show all the 'Census Source Where within Source' entries that begin with a particular reference for all census entries for a particular year. I have entry fields (Labels) for the year of interest and the start characters of my reference. First snag is that this might be the first census entry or even the 8th census entry. I can assemble all the records that have a census entry for that year by doing the following.
Add IF %INDI.CENS[1].DATE:YEAR% WAS ON ['Year'}
(and so on)
Add IF %INDI.CENS[8].DATE:YEAR% WAS ON ['Year'}
I then try to exclude records whose 'where within source' don't begin with my reference string.
EXCLUDE UNLESS %INDI.CENS[1].SOUR[1].PAGE% BEGINS WITH ['Reference']
and so on to
EXCLUDE UNLESS %INDI.CENS[8].SOUR[1].PAGE% BEGINS WITH ['Reference']
However this gives me no records at all. I Have tried it the other way round, selecting the reference strings first then excluding the years that don't match with the same effect.
I'm struggling to see the combination of logic that will allow thorough the people with varying numbers of census entries only one of which might match my year and 'where within' check. Maybe I am trying to do too much in one query.
I look forward to any suggestions.
Many Thanks
Peter
ID:5744
I'm trying to write a query to show all the 'Census Source Where within Source' entries that begin with a particular reference for all census entries for a particular year. I have entry fields (Labels) for the year of interest and the start characters of my reference. First snag is that this might be the first census entry or even the 8th census entry. I can assemble all the records that have a census entry for that year by doing the following.
Add IF %INDI.CENS[1].DATE:YEAR% WAS ON ['Year'}
(and so on)
Add IF %INDI.CENS[8].DATE:YEAR% WAS ON ['Year'}
I then try to exclude records whose 'where within source' don't begin with my reference string.
EXCLUDE UNLESS %INDI.CENS[1].SOUR[1].PAGE% BEGINS WITH ['Reference']
and so on to
EXCLUDE UNLESS %INDI.CENS[8].SOUR[1].PAGE% BEGINS WITH ['Reference']
However this gives me no records at all. I Have tried it the other way round, selecting the reference strings first then excluding the years that don't match with the same effect.
I'm struggling to see the combination of logic that will allow thorough the people with varying numbers of census entries only one of which might match my year and 'where within' check. Maybe I am trying to do too much in one query.
I look forward to any suggestions.
Many Thanks
Peter
ID:5744
