automatic fill

G

Guest

I have 2 tables, the one contains customer data. In the second one I would
like to pick from a list a customer and some fields from the first one to be
automatically filled in the second.
 
R

Rick B

Generally, you would not do that. That stores the same data in two
different tables and is redundant. It violates "normalization rules".

There are cases where you do want to do this. You may want to store the
cost of an item in a table and change it every day or so. In your related
(transaction) tables, it would make sense to store the cost of the item at
the time you performed a transaction. I can't think of a similar reason to
store customer data in a related table though. The customer data does not
change very often, and I can't think of any variable data for a customer
you'd want to store with a related table. If you are selecting the customer
number and want the customer name to be stored in the related table, for
example, then you are doing it wrong.

Post a specific example and perhaps we can help you "normalize" the data
better. In general, a piece of data should be stored only once.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top