RE: Summing an Expression



Mike,

If I'm reading this correctly, the only situation in which you get a '1' as
the value of Expr1 is when

[PUBLIC_T_DIARY_ADJ.CRED_DA_VAL] <> [PUBLIC_T_DIARY.CRED_DA_VAL]

Is that correct? Or is there a value reversal here?

If my reading is correct, maybe you should try substituting the simpler
expression and simply count the number of records where these two fields are
not the same?

--
Chaim


"Mike Johnson" wrote:

> I have the following expression in a query. I need to sum this colum. How?
>
> I tried changing the total to sum. No change in data. Still displays all
> records.
>
> Expr1:
> IIf([PUBLIC_T_DIARY_ADJ.CRED_DA_VAL]=1,0,IIf([PUBLIC_T_DIARY.CRED_DA_VAL]=1,0,1))
.



Relevant Pages

  • Re: adding colums to text
    ... File is open for writing. ... Reading file into a linked list... ... Calculating sum and average. ... Temp file is open for writing. ...
    (comp.lang.c)
  • Re: show total in a list without the entries
    ... Engelbert schrieb: ... My "reply" here will warn people (reading down) ... Sum = 977 ... workplace: Cologne ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: show total in a list without the entries
    ... My "reply" here will warn people (reading down) ... information [and probably asking questions you've answered in your ... Sum = 977 ... workplace: Cologne ...
    (microsoft.public.sharepoint.windowsservices)
  • Algebraic Topology
    ... I have been reading Massey's book - "A Basic Course In Algebraic Topology" and it says that we can construct the sum by identifying the sides of a hexagon in pairs. ...
    (sci.math)
  • Re: While Bush and his posse yammer about the good economy
    ... Shouldn't there be a law invoked in that if you're too lazy to sum ... Umm, to be honest, I don't want to go through the trouble of reading ... "When citizens fear their government, ... "When citizens fear their government, you have tyranny; ...
    (rec.sport.pro-wrestling)