Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Lookup Problem with same values


This topic is 5810 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'm doing a lookup to pull information from a Contacts Database into the current database.

The matching fields for the relationship are the contact names.

When I enter a contact name it pulls in the persons email, mobile, phone and fax numbers.

Everything works fine for the most part but when there are a number of contact names the exact same (e.g two John Smiths) the lookup always picks the first John Smith it encounters in the Contact names database and pulls in their information.

How can I get the lookup to pull in the information from the correct record in the Contact Names Database

Posted

This is why we use Key fields. A key should be unique, it should not have any meaning other than being the key. You could add an auto-entered serial number and use the replace command to populate it. Or you could make a calculated field = Name & Address and use this a the key.

Do you really want lookups are do you want related data?

  • Newbies
Posted

Thanks RalphL

Your suggestion solved my Problem.

I created a new calculation field (CombineKey) in both tables that combined our unique "Contact Code" for each company listed with their "contact name"

I then setup a relationship between these two new matching fields and now using the lookup it pulls in data from the correct record

Again Thank You for your help

This topic is 5810 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.