Hi Everyone
I have a form which I am creating which will allow me to list an account's numerous invoices and then allocate a payment against them. The form is a continuous form and I have the following fields.
The main fields on the form are the 'supplierID' & 'amountpayingfield' fields, then listed on the subform I have 'invamountoutstand' & 'amountpayingnow'. On the subform footer i have 'totalpaying'.
The code I have working (simplified) is " if the amount of the current invoice outstanding 'invamountoutstand' + 'totalpaying' is equal to or less than the 'amountpayingfield' then 'amountpayingnow'='invamountoutstand'
The problem I have is if I press the payment button or alt P too quickly or if I hold the keys down the payments are set against the invoices straight away and the re-calculation of the 'totalpaying' field doesnt get chance to work. I have tried various requery and refresh statements but the quick pressing of the keys bypasses them all.
I would appreciate any ideas anyone may have on this. I have spent days trying different things but cant find the answer.
Thanks
MU
I have a form which I am creating which will allow me to list an account's numerous invoices and then allocate a payment against them. The form is a continuous form and I have the following fields.
The main fields on the form are the 'supplierID' & 'amountpayingfield' fields, then listed on the subform I have 'invamountoutstand' & 'amountpayingnow'. On the subform footer i have 'totalpaying'.
The code I have working (simplified) is " if the amount of the current invoice outstanding 'invamountoutstand' + 'totalpaying' is equal to or less than the 'amountpayingfield' then 'amountpayingnow'='invamountoutstand'
The problem I have is if I press the payment button or alt P too quickly or if I hold the keys down the payments are set against the invoices straight away and the re-calculation of the 'totalpaying' field doesnt get chance to work. I have tried various requery and refresh statements but the quick pressing of the keys bypasses them all.
I would appreciate any ideas anyone may have on this. I have spent days trying different things but cant find the answer.
Thanks
MU