Hi, Dahlman.
Generally speaking, an Employee name, Number, and their Department would be
stored ONCE in an Employees table. To identify an employee in any OTHER
table requires storage of only the primary key that uniquely identifies that
employee. This is the power of a relational database.
You can *display* any other fields on your form or in a report by linking
your table to the Employees table, and selecting those fields, and making the
query the RecordSource for the form or report, or by including the fields as
columns in a combo box, and referring to the cbox' Column property.
There are rare exceptions to this guideline, such as when you want to store
the current price of an item at the time of an order. In this case, you
would require VB Code to specifically write the value to the field, normally
in the ProductID AfterUpdate event, using a column from the ProductID combo
box, e.g.:
[CurrentPrice] = cboProductID.Column(2)
I don't believe this is your situation, however.
Hope that helps.
Sprinks
Dahlman said:
I have a form where I fill in an employees name and in the next to boxes it
autofills the employee # and Department. I gotten this to work just fine
however when I go back to my table the onlly thing that is filled in is my
employee name. The employee # and department appear blank. Can anyone tell my
what might cause this? Thanks in advance.