In General
I’m just getting started in MS Access and one of the issues that keeps creeping up is with lookup columns in tables will stop showing the lookup name, and start showing lookup ID.
For example, say I have a search form that returns rows from my Orders table matching customer to ‘mike’.
| order_no | cust_name | order_item | order date |
|---------------------------------------------------|
| 10204 | mike | 23 | 2011-05-01 |
| 10205 | mike | 36 | 2011-06-17 |
I’ll be plugging away fiddling around with the form, and all of a sudden it’ll stop showing my customer name, and start show the actual customer_id.
Like so:
| order_no | cust_name | order_item | order date |
|---------------------------------------------------|
| 10204 | 112467 | 23 | 2011-05-01 |
| 10205 | 112467 | 36 | 2011-06-17 |
Question: In general, what can I do to get this back to displaying the customer name? What properties of the fields displayed in my form are involved?
A specific example
I was just working on a search form and decided to change the site label (the one selected in yellow) from “site” to “Site” with capitalized S.

When I went back to Form View I noticed that it was no longer showing the Site name, and was showing the id instead.

But the site combo box above is still correctly showing the site names.
What can I do to fix this?
Here’s a screen shot of the site textbox

And here’s one for the site label.

The “magic” properties to look:
If in Form Design,
If in Table Design,
What is what?
In the case of your cust_name, check all the values in the abovementioned fields. Assuming your customer_id is in column one and cust_name in column two. Then you have the following settings: