Hi John
Thank you for keeping with me in my struggles.
As you mention, I have a 'people table' which has 3 columns [unique id;
name; dept no]. (I'm using 2000 by the way.)
I then used the lookup wizard in a another table (consultation) to bring the
[staff name] and [dept]. I've tried your suggestion of using the unique id
field only, but it isn't producing the effect I need. Any other suggestions?
What is "the effect you need"?
If it is to see the name and department in the Table datasheet,
rethink your assumptions! The "Lookup Field" is of VERY limited
capability (one field only for example), and most developers avoid
using it altogether.
Table are NOT designed for data presentation or editing. They should
stay "under the hood"; you as the user, or your users, should see ONLY
forms for data interaction.
On a Form you can put a combo box bound to the uniqueID but displaying
the name - just include all three fields in the Query upon which the
combo box is based. Set the column widths property so that the ID is
of zero width, but it's the bound column; make the name the first
visible column, so that it will be shown when the combo is not dropped
down; and put a separate textbox on the Form next to the combo with a
control source
=comboboxname.Column(2)
to display the department (the third field in the combo's row source
query; the Column property is zero based).
John W. Vinson[MVP]