Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index

Am 16.12.2014 um 21:43 schrieb Joel Madero:
Hi All,

I have a form based on a table with FirstName and LastName, I want the
form to have a dropdown with SELECT CONCAT(FirstName,",",LastName)

Is there a way to do this?



If you want to pick one distinct "Persons"."ID" from a listbox, get the
list box properties, tab [Data] and fill out like this:

Linked Field: Person_ID (name of the form's foreign key pointing to a
person in a persons table)

Source type: SQL

SELECT "LastName"||','||"FirstName"||','||"BirthDate" As "Visible", "ID"
FROM "Persons"
ORDER BY "Visible"

Bound field: 1 (the primary key ID from the persons table)

Source type: Query
Source: name of the query representing the above SELECT statement.

Tons of tutorials and examples:

in particular [Example] Relations reflected by list boxes in forms

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.