main logo
Subject: Re: Parent BO's BeforeSave(), validates Child BOs on previously saved values
Author: Bhavbhuti Nathwani
Posted: 2002/03/15 00:20:42
 
View Entire Thread
New Search


Hi Enrique,

Thanks for responding, later last night I found out the problem, here it is below in a short code:

*!* The following returns a sum of the previously saved values
*!* SELECT SUM(yAmount) AS ySum ;
*!* FROM v_sJVDr ;
*!* WHERE iPID = v_tJV.iID ;
*!* GROUP BY iPID ;
*!* INTO CURSOR Temp


*!* The following returns a sum of the currently entered values
SELECT v_sjvdr
lnrecno = recno()

SUM yAmount TO lySum
go (lnrecno)

The select statement created the problems, it somehow retrieves the older values and a simple sum will return the current values.

Any idea anyone what is happening?

Regards
Bhavbhuti
 
©2002 Bhavbhuti Nathwani
<-- Prior Message New Search Next Message -->