When a foreign key (a field that relates the currently edited record into a form with another‘s table record) is displayed, a lookup list is automatically displayed. This automatically created list contains from the related table not only the lookup field but also any other fields of the related table that are also displaying on the form.
For example, the following snippet of code does the customization: