Greetings!
I have a table with the following fields:
TransactionID
TransactionDate
TransactionType
TransactionDeta ils
TransactionAcco unt
TransactionDepo sit
TransactionWith drawal
I created a main form called "Transfer Voucher" (The fields are: TransactionDate ; TransactionType ; TransactionDeta ils; TransactionAcco unt and TransactionWith drawal) and included a sub-form called "Replenish" (The fields are: TransactionDate ; TransactionType ; TransactionDeta ils; TransactionAcco unt and TransactionDepo sit). My primary objective create two transactions in one form - one for the withdrawal of amount from one account and another to deposit the same amount to another account. I was able to attain that.
To simplify the entry of records I want copy the TransactionDate and TransactionDeta ils in the main form to the TransactionDate and TransactionDeta ils in the sub-form. To do that I made an after update command in TransactionDate of the main form, as follows:
= [TransactionDate] = Forms![Replenish]![TransactionDate]
I did the same thing with TransactionDeta ils. When I tested the form, it indeed created two transactions (with different IDs) except that the Date and Details on the records from the sub-form were blank.
What can I do to automatically populate those common fields?
Thank you in advance.
Melo
I have a table with the following fields:
TransactionID
TransactionDate
TransactionType
TransactionDeta ils
TransactionAcco unt
TransactionDepo sit
TransactionWith drawal
I created a main form called "Transfer Voucher" (The fields are: TransactionDate ; TransactionType ; TransactionDeta ils; TransactionAcco unt and TransactionWith drawal) and included a sub-form called "Replenish" (The fields are: TransactionDate ; TransactionType ; TransactionDeta ils; TransactionAcco unt and TransactionDepo sit). My primary objective create two transactions in one form - one for the withdrawal of amount from one account and another to deposit the same amount to another account. I was able to attain that.
To simplify the entry of records I want copy the TransactionDate and TransactionDeta ils in the main form to the TransactionDate and TransactionDeta ils in the sub-form. To do that I made an after update command in TransactionDate of the main form, as follows:
= [TransactionDate] = Forms![Replenish]![TransactionDate]
I did the same thing with TransactionDeta ils. When I tested the form, it indeed created two transactions (with different IDs) except that the Date and Details on the records from the sub-form were blank.
What can I do to automatically populate those common fields?
Thank you in advance.
Melo
Comment