Re: using the IIF function in access



There really are no shortcuts. You need to say:

IIf(([entitydiscretedata]![velocityflag]>30,000) Or ([entitydiscretedata]!
[velocityflag]<-30,000), "
",[entitydiscretedata]![velocity])

A better way would be to say:

IIf(Abs([entitydiscretedata]![velocityflag])>30,000, "
",[entitydiscretedata]![velocity])

The Abs() function returns the absolute value of the ![velocityflag], and
will return a <blank> whether the flag is >30,000 or <-30,000.

Hope this helps.

Sam
Season wrote:
>i am trying to set a certain field to a blank vaule if another field is >than
>30,000 or >-30,000. i have set it up and it is working fine with changing
>the value to a blank if it is 0ver 30,000, but i am not sure how to work in
>the -30,000. this is what i have:
>
>IIf([entitydiscretedata]![velocityflag]>30,000, "
>",[entitydiscretedata]![velocity])
>
>how can i make this also use anything over -30,000 show up blank. this is
>kinda confusing with the negative in there and using >< signs. Well to me it
>is. Is is less than -30,000 or >-30,000. i am trying to flag values like
>-38345, -32466 etc.

--
Sam

Message posted via http://www.accessmonster.com
.



Relevant Pages

  • Re: Where am I ?
    ... >>> Oh no, Potter, your stooopidity is showing again! ... Ignorance is absolute. ... It is interesting to see that, like Sam Wormley, ... Tom Potter ...
    (sci.physics)
  • Re: Motion Through Space Is Meaningful
    ... Dirk Van de moortel wrote: ... Sam, I hope you were severely joking here. ... Einstein claims that we cannot have absolute time, ... The GPS does not need absolute synchronization because it uses ...
    (sci.physics)
  • Re: Another funny thing about rubber ruler world
    ... distance changes with speed at all Sam. ... are not absolute. ... You are blocking your own chances at progress. ...
    (sci.physics)
  • Re: Abfrage Funktionstasten im Skript
    ... Account Manager, SAM). ... Die wird zwar in der Registry abgelegt, ... sowie §1004 Abs. ...
    (microsoft.public.de.german.scripting.wsh)
  • Disable Ctrl and/or Alt Key
    ... various shortcuts. ... >Is there a way to disable the Ctrl and/or the Alt key? ...
    (microsoft.public.excel.worksheet.functions)