Greetings!
I have a table with the following fields:
TransactionID
TransactionDate
TransactionType
TransactionDetails
TransactionAccount
TransactionDeposit
TransactionWithdrawal
I created a main form called "Transfer Voucher" (The fields are: TransactionDate; TransactionType; TransactionDetails; TransactionAccount and TransactionWithdrawal) and included a sub-form called "Replenish" (The fields are: TransactionDate; TransactionType; TransactionDetails; TransactionAccount and TransactionDeposit). 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 TransactionDetails in the main form to the TransactionDate and TransactionDetails 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 TransactionDetails. 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