Disable or Not edit the field when check thefield in another table.


I have 2 tables. there is a common field in the table.if i check in the first table field then the second table form field will be disable or Not edit.How to write a method. Can anybody send me the code.