Fahad wrote:
[Quoted Text] > Hi > > I'm using access 2007 and I have a form to enter the products info. > the name of the form is "frmProductInfo". > > I have two fields that I want the 2nd field to be filled > automatically if the 1st field have certian value. > example: > > 1st field name: ProductFamily > 2nd field name: ProductCat > > if the 1st field value equal one of the following (value1 or value2 or > value3) then the 2nd field should have this value (value A) > if the 1st field value equal one of the following (value4 or value5 or > value6) then the 2nd field should have this value (value B) > > 1- could you please give me the code I should use to fill the 2nd > field automatically? > 2- where should I put that code (i.e. on which field & Active should > I put it)? on 1st field on After Update action or on the 2nd field. > > thanks...
No code is needed. The values for the second field should come from a related table.
|