John,
I posted a similar request to this (before finding this thread).
In my situation, I want to duplicate the data in a second table. The
rationale is that the first table provides the 'default' value, but the user
is able to override this. In either case the value needs to be stored in the
second table to capture the actual instance
For example:
products have a base value, but individual sales may use or alter the value
in the final sale. The alterations may be random, so there is no way to
capture it directly without wasting lots of added table entries.
In this case, how would you accomplish this?
-b
John Vinson said:
Hi,
I really appreciate you for responding to the question.
But speaking frankly,I did not get your point exactly. I did not want to
store the data into another table.I just wanted to retrive the data from a
single table,based on the value selected in the combo box.
For example,if I select the 'department code' from the combo box, then the
department name and dept. head should be filled in automatically from a
atable called 'Departments'.
I hope the question is much clear now.
Where do you want the department name "filled in"?
If you want it DISPLAYED for human reading on your Form, my suggestion
will work: use
=[Department Code].Column(1)
if the department name is the second column in the combo box named
Department Code.
If you want it STORED in the table upon which this form is based, my
objection stands. The department name should exist in the Department
table; and unless you have some very clear reason to store it
redundantly, it should simply *not exist* in any other table (such as
the table upon which this form is based).
John W. Vinson[MVP]