Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

Datatable.Compute using Filter for Boolean Field.

Hi,

What's wrong with my code?

dtTable.Compute("SUM(PayAmount)", "Selected = TRUE")

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of BToson
BToson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

What's the error you get?

Anyway, there is nothing obviously wrong. except that I would try:
 
dtTable.Compute("SUM(PayAmount)", "Selected = 1")

but, without more information, it's just a guess.
Sorry BToson, just typing at the same time :)
Avatar of emi_sastra
emi_sastra

ASKER

Hi BToson,

Thank you very much for your help.