I'm using several list box tables to make input easyer. ID numbers of the list box table are stored in the main database.
When a report is generated it shows the numbers from the database. I'd like to show the related fields from the list box tables.
Suggestions anyone?
[Solved] List box fields in report show only numbers
[Solved] List box fields in report show only numbers
Last edited by adj on Tue Jan 08, 2008 11:28 pm, edited 2 times in total.
- DrewJensen
- Volunteer
- Posts: 1734
- Joined: Sat Oct 06, 2007 9:01 pm
- Location: Cumberland, MD - USA
Re: List box fields in report show only numbers
You would use a query to join the tables together based on those ID fields, then display the text from the joined table versus the ID value.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Re: List box fields in report show only numbers
Thanks for your quick response. Could you please explain a bit more. I'm a novice user of databases in general. Started to use base last week.
Re: List box fields in report show only numbers
I added a list box table and see the what you meen. Now I get 5 lines with the same data. With what funtion of criterium can I shorten this list to one relevant line?
- DrewJensen
- Volunteer
- Posts: 1734
- Joined: Sat Oct 06, 2007 9:01 pm
- Location: Cumberland, MD - USA
Re: List box fields in report show only numbers
Well you need to JOIN the tables.
So in the query designer click on the field in the Main table that holds the ID to the other table, then drag this to the ID field in the second table.
When you let go of the mouse key you will see a line between the tables
Run your query again.
So in the query designer click on the field in the Main table that holds the ID to the other table, then drag this to the ID field in the second table.
When you let go of the mouse key you will see a line between the tables
Run your query again.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Re: List box fields in report show only numbers
Yes, thanks for your help!