Good Morning,
Still relatively new to FH7 (and FH). I am looking for a query or report to output (preferably).
I want a query view or report that will reverse order output by position.
Similar to the Tools > Working with Data > Places > Place List (with reverse order),
However the report only generates 2 cols --- one for name and second of # used.
If there is a query to view places "split" by position that would be create, but it would need to be in reverse order for my purposes so Country is first. Thanks! Kevin
* Place Query and/or report
-
kevync1985
- Platinum
- Posts: 40
- Joined: 22 Jan 2023 02:44
- Family Historian: V7
- Location: Winston Salem, NC
- Contact:
Place Query and/or report
- Attachments
-
- PlaccesREPORT_Screenshot 2023-02-15 075942.jpg (122.43 KiB) Viewed 410 times
-
- PLACES_Screenshot 2023-02-15 075822.jpg (157.77 KiB) Viewed 410 times
- tatewise
- Megastar
- Posts: 27078
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Place Query and/or report
Yes, a Place type of Query with the =TextPart(...) function can do that.
When creating a new custom Query ensure its type is set to Place so it examines Place records.
Then define Columns for each Place part in reverse order and sorted Ascending.
e.g.
Heading: Last
Expression: =TextPart(%_PLAC.TEXT%,-1,1,STD)
Sort: Ascending
Heading: 2nd Last
Expression: =TextPart(%_PLAC.TEXT%,-2,1,STD)
Sort: Ascending
Heading: 3rd Last
Expression: =TextPart(%_PLAC.TEXT%,-3,1,STD)
Sort: Ascending
Heading: 4th Last
Expression: =TextPart(%_PLAC.TEXT%,-4,1,STD)
Sort: Ascending
and so on...
See FHUG Knowledge Base An Overview of Queries.
When creating a new custom Query ensure its type is set to Place so it examines Place records.
Then define Columns for each Place part in reverse order and sorted Ascending.
e.g.
Heading: Last
Expression: =TextPart(%_PLAC.TEXT%,-1,1,STD)
Sort: Ascending
Heading: 2nd Last
Expression: =TextPart(%_PLAC.TEXT%,-2,1,STD)
Sort: Ascending
Heading: 3rd Last
Expression: =TextPart(%_PLAC.TEXT%,-3,1,STD)
Sort: Ascending
Heading: 4th Last
Expression: =TextPart(%_PLAC.TEXT%,-4,1,STD)
Sort: Ascending
and so on...
See FHUG Knowledge Base An Overview of Queries.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
kevync1985
- Platinum
- Posts: 40
- Joined: 22 Jan 2023 02:44
- Family Historian: V7
- Location: Winston Salem, NC
- Contact:
Re: Place Query and/or report
Perfect! thank you that is what I was looking for -- similar to SQL I have seen.
- Attachments
-
- PlacesWith5_Screenshot 2023-02-15 091652.jpg (229.88 KiB) Viewed 388 times
- jimlad68
- Megastar
- Posts: 911
- Joined: 18 May 2014 21:01
- Family Historian: V7
- Location: Sheffield, Yorkshire, UK (but from Lancashire)
- Contact:
Re: Place Query and/or report
Lots of PLACe queries for comma separated parts attached. They are geared up for my Biggest 1st PLACe order e.g. Country, state, County, Town, District, etc, but will give many ideas for organising. The *CHECK* queries are to try and keep my PLACes in strict comma separated order.
- Attachments
-
- place part queries.zip
- (19.71 KiB) Downloaded 22 times
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68