I've started with changing your table structure. (Check the database relations!)
A tblAgent has been added to record the UpgradeQuantity .
The table tblBalance has an additional date and the NormalBalance has been dropped as "Starting balance as of 1 January" can be recorded on that date as a DateUpgrade qty while dropping the older dates.
Opening the form triggers the warning and a Yes will add the rows with the upgrade qty.
Finally the Balance on the form is made visible after selecting the Agent.
To finalize this you would need an additional FinalBlance being the Dsum() of the tblBalance minus the Dsum() of the tblLeave qty.
Nic;o)
A tblAgent has been added to record the UpgradeQuantity .
The table tblBalance has an additional date and the NormalBalance has been dropped as "Starting balance as of 1 January" can be recorded on that date as a DateUpgrade qty while dropping the older dates.
Opening the form triggers the warning and a Yes will add the rows with the upgrade qty.
Finally the Balance on the form is made visible after selecting the Agent.
To finalize this you would need an additional FinalBlance being the Dsum() of the tblBalance minus the Dsum() of the tblLeave qty.
Nic;o)
Comment