S
Sridhar.Arcot
I have two master tables Company and Shareholders as follows
Company Shareholders
GVKey ID
Name Name
Type
Further I have a ShareDetail table with shareholdings in companies as
follows
ShareDetail
GVKey
Year
ID
Name
Type
Holding %
My problem is that the Company master is populated but the Shareholder
master is not. I wish to populate both the ShareDetail and Shareholders
table simultaneously when entering data for ShareDetail. In particular
whenever I enter data the procedure (before committing) should check
using Name if the record is present in Shareholders, if yes update only
ShareDetail, if no update both ShareDetail and Shareholders. I will use
a form to enter data. Can anyone tell me the code for accomplishing the
same?
Company Shareholders
GVKey ID
Name Name
Type
Further I have a ShareDetail table with shareholdings in companies as
follows
ShareDetail
GVKey
Year
ID
Name
Type
Holding %
My problem is that the Company master is populated but the Shareholder
master is not. I wish to populate both the ShareDetail and Shareholders
table simultaneously when entering data for ShareDetail. In particular
whenever I enter data the procedure (before committing) should check
using Name if the record is present in Shareholders, if yes update only
ShareDetail, if no update both ShareDetail and Shareholders. I will use
a form to enter data. Can anyone tell me the code for accomplishing the
same?