* Title when printing results of a custom 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
kfunk_ia
Diamond
Posts: 68
Joined: 03 Dec 2019 22:50
Family Historian: V7
Location: Iowa, United States

Title when printing results of a custom query

Post by kfunk_ia » 14 Apr 2022 16:46

I have created a query that takes three parameters, County, Start and End. This query generates a result set of all people married in a specific <County> between <Start> and <End>. The query works just fine for my purposes. What I want to do is have the title of the report (when I print out the results) read something like 'Marriages in Jones County', where Jones was the value supplied when the query was ran.

On the General tab of the query window, is there an expression that can be used in the title field to automatically add the entered <County> after the string 'Marriages in'? This way I don't have to manually change the title every time I run the query.

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

Re: Title when printing results of a custom query

Post by tatewise » 14 Apr 2022 16:50

That is explained in FHUG Knowledge Base An Overview of Queries under Printing the Results Set from a Query.

Use the code =Text(["County"])
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
kfunk_ia
Diamond
Posts: 68
Joined: 03 Dec 2019 22:50
Family Historian: V7
Location: Iowa, United States

Re: Title when printing results of a custom query

Post by kfunk_ia » 14 Apr 2022 17:10

It may be in the knowledge base but unfortunately it didn't seem to turn up when I used the Search box.

I can attest to the fact that using %["County"]% causes the who program to crash when choosing either Print and Print Preview.

Thank you!

Post Reply