Re: EXPRESSIONS

Tech-Archive recommends: Fix windows errors by optimizing your registry



Fredg,

As in my previous post, this works excellent! My next question is, how can
I ONLY return those lines with an "R" or Null value?

Again, Thank you for any help.

As you can probably tell, I'm pretty new to Access...and am anxious to learn
as much as I can.

"fredg" wrote:

> On Fri, 26 Aug 2005 10:45:01 -0700, MDI Anne wrote:
>
> > In my query I get several values for my EVENT_CODE field. I am only looking
> > to find the "R" code and the null codes. For the "R" codes I would like to
> > show a "Y" for yes, and for the null codes I would like to show a "N" for no.
> > Right now I have this in 2 different columns, but would if possible, like to
> > have this in 1 column.
> >
> > Am I remotely close with my expressions? and How do I do this in 1 column?
> >
> > Expr1: IIf([EVENT_CODE]="R","Y")
> > Expr2: IIf(Len([EVENT_CODE] & "")=0,"N")
> >
> > Thanks for any help!
>
> Exp:IIf(IsNull([Event_code]),"N",IIf([Event_Code]="R","Y",""))
>
> --
> Fred
> Please only reply to this newsgroup.
> I do not reply to personal email.
>
.



Relevant Pages

  • Re: date - # of days calcuation
    ... or should I redesign the database to put some other field in there? ... Please only reply to this newsgroup. ... I do not reply to personal email. ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: Control property .visible and .enabled
    ... > If the field dateandtimevl is empty the control is still locked. ... Please only reply to this newsgroup. ... I do not reply to personal email. ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: from what pull-down menu can I get to the relationships screen?
    ... > "relationships" on any of the pulldown menus. ... Please only reply to this newsgroup. ... I do not reply to personal email. ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • Re: First Page Exists!!!
    ... Do you wish to hide a control only on the first page? ... Please only reply to this newsgroup. ... I do not reply to personal email. ... Prev by Date: ...
    (microsoft.public.access.reports)
  • Total transactions by month
    ... I have searched the newsgroup and do not find exactly what I am looking ... for so I thought I'd ask a very elementary question. ... the date field into month and year expressions, ... Prev by Date: ...
    (microsoft.public.access.queries)