Order Balance Field not Updating Correctly?

scouser

Registered User.
Local time
Today, 08:41
Joined
Nov 25, 2003
Messages
767
Hello to one and all. I thought I had it all working, but alas testing has proved me wrong!

I have stripped down my DB in order to post. You are left with an Order Form and Payment Form (Tabbed).

There are various calculated fields on both forms. I made a few amendments and am now well and truly confused!

If I update the Orders Form the calculated fields work correctly. However on the Tabbed 'Payments' form the last field 'Order Balance' does not reflect these changes.

If I re-input the value '0' or make a payment then the Order Balance Field updates itself to the correct value?

There is some after update code on the 'Total' field on the Payment Form.

I am sure it is not a MAJOR problem. I just can't see it for looking.

PLEASE put me out of my misery one of you guru's.
:confused: Phil :confused:
 

Attachments

Problem fixed

Hi Scouser.

There was a problem with the frmPayments. I deleted a line of code in the Event Procedure, After Del Confirm. It seems to work fine now.
Good Luck. Trucktime
 

Attachments

Nice One

That seems to have done the trick.
Cheers for having a look on a Sunday!!
:D
 
NOT quite there

Further investigation has spotted a flaw!

On the Payments Form there the last 2 fields:
PaymentMade
OrderBalance

Both of these fields control source = tblOrders.

I need these Fileds to remain as they are as I have a query:
qryOutstandingPayments

If you change the OrderBalance field to unbound:
=[TotalGross]-[PaymentMade]
Then outstanding payments report will not work.

Any thoughts on a workaround using your solution? Or its back to my original post!!
I have attached an updated DB so you can see the additional Query+Report
qryOutstandingPayments
rprtOutstandingPayments
Cheers,
Phil.
 

Attachments

Struggling

Still STRUGGLING with this one guys!!
If not for me...do it for the kids..... :D
 
Still unresolved!!

Hi Guys.....back from my course and would love to get this issue resolved!!
Last Try......
:D
 
Please go back to oroginal configution.
I found that you will update the ORDER BALANCE when you update the payment only, but not when you update the order.
I think you have to recalculate the order balance wheever you update either payment or order.

good luck
 
Have done

Yeah, did that. I have kinda settled for what I have...
Thanks for replying.
Phil.
 
No News is Good News!!

Pat I know its not the best!! It works for my brother so will learn for the next time!!
:D
 

Users who are viewing this thread

Back
Top Bottom