Multifield Lookup

ply@lockton.com

Board Regular
Joined
Mar 25, 2003
Messages
125
I have the following 3 columns: Client Name, Client Policy Type, Client ID. I would like the Client ID to automatically populate with the correct ID based on the Client Name and Client Policy Type selected. I'm new to Access, so someone please help!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I'm not clear what you want but try this and see if it inspires a solution.

Go to design mode on a query. Under menu Query change it to an Update query. Under menu view/Show Table add the appropriate table.

Fill in one column only in the bottom of the design screen. Enter Client ID in the field. Enter exactly this in the Update To: field:
[Client Name] & "/" & [Client Policy Type]

Important advice for newbies: properly weigh whether to back up the database at least before doing any Update, delete, or make-table query. You've been warned :)

Run the query (Menu query run). Check the table contents now. See how that grabs you.

Again, be aware that this query modifies your database data so exercise suitable caution.
 
Upvote 0
Are you working in a form? You could use the built-in "Filter by Form" feature to find the matching records. The problem is that it is the Client ID that should be the unique identifier. Presumably you could have multiple "John Smiths" with the same policy types.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,567
Messages
6,160,540
Members
451,655
Latest member
rugubara

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top