What you are asking for is 'bulk standard' referential linking. - It's one of those things that seem to be done with 'Smoke and Mirrors' until you see it once, then it becomes 'common sense'.
On Forms is can be done using combo boxes.
The combo box is BOUND to the Foreign Key field and contains a Number.
The ROWSOURCE of the combo has TWO columns. The first being the PrimeKey of the lookup table, the second being the TEXT data field.
Then make the combo box's ColumnWidths = 0; which sets the first column to zero width - thus displaying the TEXT.
Another option in Forms AND REPORTS is to use DLOOKUP.
In a text box control place the following in the ControlSource
=DLookUp("TextDataFieldName","LookUPTableName","LookUpPrimeKey = MainTableForeignKey"
Where
TextDataFieldName is the nasme of the text field in the lookup table that holds the data that you want to display.
LookUPTableName is the name of the Lookup table
LookUpPrimeKey is the name of the primary key field in the lookup table
MainTableForeignKey is the name of the control on the form or report that holds the value of the foreign key from the main table. ( This control can be hidden { .Visible = No } if you don't want the users to see it. )
'ope-that-'elps.
G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.
Please remember to give helpful posts the stars they deserve!
This makes the post more visible to others in need! :-D