I have a form with 11 fields and one of them is named code. This code field contains data from 1 to 4. and each etry like 1 is related to 5 or four fields of the form. I wish that when I feed 1 only those fileds should be visible which are related with this and others should be dim and cursor/tab should not touch them. Is there any VB code for this and for form where it should be entered. Thanks.