Page 1 of 1

Displaying two fields in a lookup

Posted: Wed Jun 06, 2018 11:21 am
by agnar
Hey,

I need the following in a subform:

Code: Select all

table1
  table1_id
  tb1_table2_id
table2
  table2_id
  field1
  field2
Now, in my table1 edit form I need to place a lookup into table2 that displays BOTH field1 and field2 in the description field.
Is that possible?

Maybe the best way is to create the combined field as a virtual field in MySql?

Re: Displaying two fields in a lookup

Posted: Wed Jun 06, 2018 11:37 am
by toms
Hi,

I'm not sure I understand your question.

By using CONCAT you can concatenate two or more columns together.
contact_lookup.png

Re: Displaying two fields in a lookup

Posted: Wed Jun 06, 2018 3:59 pm
by agnar
Cool, that will probably fix it. So did a virtual field. That probably saves me some more head scratching too.

Re: Displaying two fields in a lookup

Posted: Mon Jun 11, 2018 2:30 am
by admin
.