Populating a field in a table depending on another
In my table customers i want to populate the field segmenid depending on the
choice in the lookup field Typeid. Both fields, typeid and segmentid are placed in the
table Customers. The field Typeid is a lookup field, looking in the table Type.
If i choose Typeid 1,2,3,4, or 5, then i want to populate the field Segmentid as follows:
segmentid = 1. In all the other cases the filed should be populated as SegmentID = 2
How can i do it?
In my table customers i want to populate the field segmenid depending on the
choice in the lookup field Typeid. Both fields, typeid and segmentid are placed in the
table Customers. The field Typeid is a lookup field, looking in the table Type.
If i choose Typeid 1,2,3,4, or 5, then i want to populate the field Segmentid as follows:
segmentid = 1. In all the other cases the filed should be populated as SegmentID = 2
How can i do it?