Table and look up Wizard

Teri Bridges

Member
Local time
Yesterday, 23:40
Joined
Feb 21, 2022
Messages
187
I am having look up issues, I have posted pics but basically I am looking up contacts from my contacts query. I have such a hard time explaining.
I want to look up Jane, I want the lookup box to show two columns Jane's name and her job title, When I click the drop down I see Jane, but only a number for the job title. If I run the query it shows the text.

If I change the look up code from Job title to company It displays Jane and the company name. I noticed a bit of difference in how the lookup wizard wrote the code but I do not know what exactly is wrong. Any help. By the way you guys have been wonderful.

Example

ContactJob Title
Jane7
ContactCompany
JaneHershey
Job Title 1.png
 

Attachments

  • Job Title 2.png
    Job Title 2.png
    71.6 KB · Views: 251
  • Job Title 3.png
    Job Title 3.png
    16.2 KB · Views: 268
you create a New Query from [active contacts Extended] Query and your "Title" table.
join them by [active contacts extended].[job title] and "title table".ID (which ever is the autonumber):

select [active contacts extended].[ID], [active contacts extended].[contact name], [theTitleTable].[job title]
from [active contacts extended] Left join [theTitleTable]
on [active contacts extended].[job title] = [theTitleTable].[ID];

see Query1 in design view.

the source of TaskT form is Query1.
view the form.
 

Attachments

Last edited:
If you are using a table level lookup for job title, this is one of the reasons that is a bad idea. Remove the table level lookup. It will not break any form/report that is using a combo. Use a query with a join as arnelgp suggested to get the text value of the job title
 

Users who are viewing this thread

Back
Top Bottom