Ask Your Question

Dropdown list in one table taken from another table [closed]

asked 2015-01-15 10:55:30 +0100

steven.jandreau.7 gravatar image

updated 2020-08-14 22:20:48 +0100

Alex Kemp gravatar image

Libre Office Version:

I have have created 3 tables: SOURCE, METHODS OF PAYMENT, PAYMENTS. I want to have the filed payment_methods in PAYMENTS be a dropdown list based on the METHODS OF PAYMENTS field payment_methods. Any help will be appreciated.

Steve J.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-14 22:20:54.823163

2 Answers

Sort by » oldest newest most voted

answered 2015-01-16 05:33:03 +0100

frofa gravatar image

updated 2015-01-16 05:34:49 +0100


You may do what you want using either a LIST BOX or a COMBO BOX in your form. Both controls will show a selectable dropdown menu with list of values from the 'foreign' table (i.e. the MethodOfPayment table).

But note the difference: a LIST BOX usually is setup to write the ID number (PK) of the chosen item as a foreign key (FK) in the current row of your Payments table, whereas a COMBO BOX will simply write the value of the choice (i.e. the payment method chosen) into the selected row of the Payments table. See THIS THREAD for more info (especially the post by DACM).

edit flag offensive delete link more

answered 2015-01-15 12:27:25 +0100

Lupp gravatar image

updated 2015-01-16 13:16:30 +0100

Use the validation tool ( > 'Data' > 'Validity' ) with 'Cell range' ...

Sorry! I seem to tend to interpret any question as one about Calc even if expressly tagged otherwise.

edit flag offensive delete link more


This does not seem to be relevant to the original question (and it seems to be about Calc and not Base).

frofa gravatar imagefrofa ( 2015-01-16 05:38:57 +0100 )edit

Question Tools



Asked: 2015-01-15 10:55:30 +0100

Seen: 1,451 times

Last updated: Jan 16 '15