initialization

Hi,

if i have2 tables with fields

table1

accno,name,addrs,phno…etc.

table2

acco,item,…etc.

there is a relation between 2 tables by accno.

if i open table 2, acco no field directly initialized from table 1.

now i add name field to table 2.

my query is

At the time of accno initialization corresponding name should be appear in the name field.

For this where i write the code and what it is?

I have to write the all validate methods like validate write,validate delete?

Hi Anish,

You can write code in the modifiedField() method on table2.

The code will be,

public void modifiedField(fieldId _fieldId)
{
super(_fieldId);

switch(_fieldId)
{
case fieldNum(Table2, AccNo):
this.Name = Table1::find(this.AccNo).Name;
break;
}
}

than q very much