Argh! Lookups...

ply@lockton.com

Board Regular
Joined
Mar 25, 2003
Messages
125
I've got a query set with 3 fields. Query comes up fine. I tried to do a lookup of the query fields on a table - and 2 out of 3 fields come up as they should. The 3rd field comes up with a number rather than text.

Query shows:
Client Client ID P&C
Client Client ID P&C
Client Client ID Bonds
Client Client ID Benefits
Client Client ID Bonds

Lookup Field should show:
P&C
P&C
Bonds
Benefits
Bonds

But instead shows:
1
1
3
2
3

Any ideas on why it's pulling the index number rather than the text value? How do I fix this? :banghead: :banghead: :banghead:
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
In the Properties of the field (you're in a table, right) -- go to the bottom.
Click the Lookup tab. The top line probably shows Combo.
The RowSource (or is it RecordSource)? shows a query (SELECT ....)
The ColumnCount row will probably be 3, from what you showed in the example. Anyway, it should be greater than 1.
The Column Widths will be a sequence of numbers separated by semicolons. Make the FIRST number 0. That hides the key field and displays the second. If instead you want to display field 3, make the first two widths 0...

HTH
Denis
 
Upvote 0

Forum statistics

Threads
1,223,477
Messages
6,172,481
Members
452,463
Latest member
Rigger4375

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