Can autofill save the looked up value?
Posted: 2016-01-19 15:11
I would like to use someting like lookup + autofill, but instead of storing the id of the record in the parent table, the "looked up" value should be stored instead.
Example:
1. In my orders table I have a lookup field called "Customer_name". This field looks up the customer name in my customer table.
2. Instead of having orders.customer_name as an integer that simply stores the id of the customer, I would like orders.customer_name to be a varchar() field that store the actual name of the customer (at the point in time when the order was created).
But lookup functionality should be preserved when entering the record, so that we can pull the name of the customer when the order is created.
Thanks for all help.
Example:
1. In my orders table I have a lookup field called "Customer_name". This field looks up the customer name in my customer table.
2. Instead of having orders.customer_name as an integer that simply stores the id of the customer, I would like orders.customer_name to be a varchar() field that store the actual name of the customer (at the point in time when the order was created).
But lookup functionality should be preserved when entering the record, so that we can pull the name of the customer when the order is created.
Thanks for all help.