* query

Questions about the various ways of sharing your research with others
Post Reply
User avatar
Ossey55
Platinum
Posts: 42
Joined: 28 Apr 2022 22:30
Family Historian: V7
Location: Bolton, Mississippi, USA

query

Post by Ossey55 » 17 Jun 2023 18:20

I have 2 questions about queries.

I have started making some custom queries, that are working great. I was just wondering if there is a way to add a column for a Record ID. I am looking for an expression to use.
example: If Jim was the home person in my tree, and his Record ID is 1, how do I get the 1 to show as a column in the results of my query?

The second question is:
Is there a way to have the columns in my results either have a word wrap effect or be shown vertically like you can do in Excel? I am just trying to get the long Columb name to take up less space because the results only answer yes or no.

User avatar
LornaCraig
Megastar
Posts: 2989
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: query

Post by LornaCraig » 17 Jun 2023 18:33

The expression for the Record ID is =RecordId().

I don't know of a way to get the text in the column heading to wrap, but you can adjust the width of the columns. (That will of course obscure some of the text in the heading.)
Lorna

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

Re: query

Post by tatewise » 17 Jun 2023 19:52

Hint: A way of discovering how to display a value such as Record Id is to find a Query that already displays Record Id and inspect its Column tab expression.

You can make the Query Window Results font small so the text takes up less space.
See Tools > Preferences> Query Window > Fonts... > Query Window Results > Edit
You could also use some form of abbreviated Column Heading with a key in the General tab.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply