How do I create a form in which a data clerk can enter a number in one box and it inserts into another box the corresponding value? The two columns are contained in one table.
You might want to re-think this operation just a little bit, as there is an easy way to DO what you want, without having to resort to storing both columns in a table.
You obviously have a situation where one person's (the D/E/C) view of the data is a number like "42", but another person's view of the same bits is "LeftHanded Smoke Shifter"...
Don't store both values. Create ONE lookup table with two columns, the Number and the corresponding value. Create ONE column in your main table, that contains the NUMBER.
In Table design mode, click the LOOKUP tab of this number field. Set the Display Control to Combo box, the Row Source TYPE to Table/Query, the Row source to the 2-column lookup table, the bound column to 1 (assuming that the first column of your lookup table is also the number field), the column COUNT to 2, Column heads to NO, and column widths to .25" and 1" (wider if necessary).
When the field has the focus, a combobox will show with the numeric values and text values:
You might also create a JOIN between the two tables, to establish referential integrity. Drag the number guy in the look up table to the number guy in the main table, and set the link (one to many). If necessary check on Cascaded updates and deletes (depends on your application).
If you need any other help, let us know.
Jim
Jim Hare
"Remember, you're unique - just like everonone else"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.