Look Fields Display Primary Key On A FOrm

qvqv

New member
Local time
Today, 09:36
Joined
Jan 24, 2021
Messages
1
I have a main table where one of the fields gets its date from a look-up table.

The lookup table consists of an ID (PK) and a Fullname field.

When I create a field on a form based on the main table and have a field on the form which refers to the field in the look-up table it gives the primary key.

How do I change it from the field holding the primary to the Fullname field?
 
I suspect you need a combobox:-

 
Do not use Lookups on the table. Use a combo as Uncle suggests.
You could also use a DLookUp() to get the value.?

Get rid of the table lookup as this always causes confusion with new users.

Also crossposted with same reply https://www.accessforums.net/showthread.php?t=82790 :(
 
Combo and listboxes have a Columns property. Set the width to 0 to hide a column or to any non-zero number to show it.
So,
0,3.5, 1, 0, .3
The RowSource in this example has 5 columns selected. 1 and 4 are hidden. 2, 3, 5 are shown when the combo is dropped down but only 2 shows when the dropdown is closed.

Normally, the first column is the bound column and that is the one that will be saved when an item is selected even though the first column with a non-zero width is what is shown. That is how we store the CustomerID but show his name.
 

Users who are viewing this thread

Back
Top Bottom