Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate total values when check column on grid is true
Message
 
 
To
01/08/2007 12:25:22
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01244964
Message ID:
01245175
Views:
55
You probably meant to say, inspired by your answer I decided to use my own approach? :)

Sorry, can not resist :)

Why do you need it in BeforeRolColChange and why you can not use?
local lnRecno, lnValor
select ccheques
lnRecno = recno('cCheques')
sum valor to lnValor for deposita = 1
locate m.lnRecno
thisform.total.Value = m.lnValor
>Hi Naomi
>
>Q.Ok, good. I meant, what is the ControlSource for the column with the checkbox?
>
>Ans.the controlsource of this column is ccheques.deposita, following your instructions I coded the beforerowcolchange event of the grid to scan my cursor, calculate the total, present the sum in another textbox outside the grid and in the end returning to the original recno(). The code is as follows
>
<snip>

>Thanks for all your help
>Luis Santos
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform