G
Guest
I have a form that is used to enter customer payments. My DB is set up such
that there is a customer table that holds the amount originally owed, with a
one to many relationship to a transactions table that has each entry of any
payments that have been received.
At any given time i can look at what is owed by subtracting the sum of what
has been paid from the customers original charge and I have it!
I have set up an interface so that someone can blindly enter transatcions by
simply entering a customer number and an amount paid. I then have it set up
so that I programatically find any over payment.
In doing this I have run into something where I think that my code is trying
to sometimes apply the paylent BEFORE the results of the query are returned
with the balance.
Is there some way to programatically wait until I know that a query has
finished and has returned a value before I continue to perform calculations
with the result?
Thanks
Rick
that there is a customer table that holds the amount originally owed, with a
one to many relationship to a transactions table that has each entry of any
payments that have been received.
At any given time i can look at what is owed by subtracting the sum of what
has been paid from the customers original charge and I have it!
I have set up an interface so that someone can blindly enter transatcions by
simply entering a customer number and an amount paid. I then have it set up
so that I programatically find any over payment.
In doing this I have run into something where I think that my code is trying
to sometimes apply the paylent BEFORE the results of the query are returned
with the balance.
Is there some way to programatically wait until I know that a query has
finished and has returned a value before I continue to perform calculations
with the result?
Thanks
Rick