Re: Access - three IIF expression
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Fri, 2 Mar 2007 12:47:40 -0500
Michelle wrote:
I have the below expression which is working fine for me, but notI think this is what you're after:
perfect,
because I need one more IIF in the expression, ' iif([Stat07]="R",1) ,
I just
can't make it work after putting this condition in.
BldgAssess07:
Sum(IIf([Stat07]="A",Round([PLrate07]*[KM]*0.1,0),IIf([Stat07]="p",Round([PLrate07]*[KM],0))))
Thanks in advance!
Sum(IIf([Stat07]="A",Round([PLrate07]*[KM]*0.1,0),IIf([Stat07]="p",Round([PLrate07]*[KM],iif([Stat07]="R",1,0)))))
You will probably get more help for your non-ADO questions in one of the
Access groups (expand Office Solutions in the table of contents). There is
at least one devoted to queries, and another to VBA.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Prev by Date: Re: Problem with GetOrdinal
- Next by Date: Re: C++ support for ADO
- Previous by thread: Problem with GetOrdinal
- Next by thread: Excel 2007 limited to 255 columns by ADO?
- Index(es):