You could try something like this (for learning purposes)
Create a new table. In the table design view, add fields, studname,
Lang. In the properties area for each field there are 2 options,
General and Lookup. For the Lang field click on Lookup. In the Display
Control window select List Box. For the Row Source you can add a Select
statement like this:
Select Lang_ID, Language From Languages
In the Column Count field enter 2. For column widths add 0, 1. This
makes the Lang_ID field not visible and only the Language field is
visible. This places a dropdown box in the Lang field when you open the
table. So you could add a student Fred Smith, then when you enter the
Lang field you will get a dropdown arrow with a list of Languages from
the Languages table. Pick a language. The Name of the Language is what
you will see in that field, but when you query the table, you will get
the Lang_ID field. The Lang_ID field is really what gets entered. If
you change the column widths to 1, 1, then the Lang_ID field will also
be visible. If you switch the Select statement to
Select Language, Lang_ID...
The Language field will be the what actually gets written to the Lang
field. You could also just do
Select Language From Languages
If you base a data entry form on this table, you will also have the
dropdown box in the Lang field.
Just some ideas.
Rich
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!