[Solved] SubForm Table - Show Only Unique Values

Discuss the database features
Post Reply
jmadero
Posts: 62
Joined: Sun Nov 15, 2009 10:04 pm

[Solved] SubForm Table - Show Only Unique Values

Post by jmadero »

Hi All,

Database: https://drive.google.com/open?id=1kCiKT ... PX4nMR3i4E

Steps:
(1) Open db;
(2) Go to "MyLibrary"
(3) Go to Record 285

Verify Title: Forward the Foundation

Observed:
On the right I have "Series by Author" and I really just want the name of each series in my Database by the same author. What I'm getting is a repeat of the series for each book in that series. Do I have to make a new query or is there a way for me to easily avoid the repeats and just show unique values.

Thanks
Last edited by jmadero on Mon Jul 23, 2018 4:52 am, edited 1 time in total.
Bodhi 5.0, LibreOffice 6.0.5.2, and OOo
UnklDonald418
Volunteer
Posts: 1549
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: SubForm Table - Show Only Unique Values (i.e., no repeat

Post by UnklDonald418 »

You need a different query for SubForm_SeriesByAuthor, something like:

Code: Select all

SELECT DISTINCT "BookTable"."SeriesID", "BookTable"."AuthorID", "SeriesTable"."SeriesName", "SeriesTable"."NumberOfBooks" 
FROM "BookTable", "SeriesTable" 
WHERE "BookTable"."SeriesID" = "SeriesTable"."SeriesID"
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
jmadero
Posts: 62
Joined: Sun Nov 15, 2009 10:04 pm

Re: [SOLVED] SubForm Table - Show Only Unique Values

Post by jmadero »

Thanks! Worked like a charm. I'll probably be posting another 50 questions about this project in the coming weeks. Really appreciate the guidance, patience, etc....

If you're a beer drinker, round on me :)
Bodhi 5.0, LibreOffice 6.0.5.2, and OOo
UnklDonald418
Volunteer
Posts: 1549
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: [SOLVED] SubForm Table - Show Only Unique Values

Post by UnklDonald418 »

Another recommendation concerning the form document MyLibrary.
On the Data tab of the Form Properties dialog for each of the 3 SubForms, change the Navigation bar property to Parent Form.
With that change, if you select something on one of the SubForms it won't hijack the main navigation bar.
Cheers!!
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
jmadero
Posts: 62
Joined: Sun Nov 15, 2009 10:04 pm

Re: [SOLVED] SubForm Table - Show Only Unique Values

Post by jmadero »

I was trying to figure out how to do that! Thank you! Posting another question now :)
Bodhi 5.0, LibreOffice 6.0.5.2, and OOo
Post Reply