Query - look for text in Note
Posted: 10 Aug 2023 11:04
As usual I think I am asking for the impossible or something near it.
I'm trying to write a query that looks at %INDI.NOTE2[1]%
There will always be a line in that note somewhere in it that looks like:-
CENSUSES: (c1847-1924) (where the values in brackets are there person's life dates)
Don't ask why - not my data
Ideally I would like to return just that line.
Alternatively it would suffice if I could test to see if the note contains the TextPart of Life Dates
I thought this might work but it doesn't
I'm trying to write a query that looks at %INDI.NOTE2[1]%
There will always be a line in that note somewhere in it that looks like:-
CENSUSES: (c1847-1924) (where the values in brackets are there person's life dates)
Don't ask why - not my data
Ideally I would like to return just that line.
Alternatively it would suffice if I could test to see if the note contains the TextPart of Life Dates
I thought this might work but it doesn't
Code: Select all
Add if
%INDI.NOTE2[1]%
Contains
=TextPart(LifeDates(%INDI%,STD),-1,1,STD)