IF Command for Office 2007

L

lmossolle

How would you do this one?

SAT to 1M=IIF(AND([KT Value]>100000,{KT Value]<1000000),[KT Value],"")

KARL DEWEY said:
Below SAT: IIF([KT Value]<100000,[KT Value],"")

The function is IIF not IF.

--
Build a little, test a little.


lmossolle said:
Can someone assist with this


Below SAT: IF([KT Value]<100000,[KT Value],"")
 
J

John Spencer

Are you trying to do this in Excel or in Access? There is a difference

IIF([Kt Value}>100000 and [Kt Value]<1000000,[Kt Value], Null)

Don't use a zero length string "", use Null. If you use the zero-length
string Access will convert the [Kt Value] from a number type to a string type.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
How would you do this one?

SAT to 1M=IIF(AND([KT Value]>100000,{KT Value]<1000000),[KT Value],"")

KARL DEWEY said:
Below SAT: IIF([KT Value]<100000,[KT Value],"")

The function is IIF not IF.

--
Build a little, test a little.


lmossolle said:
Can someone assist with this


Below SAT: IF([KT Value]<100000,[KT Value],"")
 
L

lmossolle

Access 2007

Thanks!!!!

John Spencer said:
Are you trying to do this in Excel or in Access? There is a difference

IIF([Kt Value}>100000 and [Kt Value]<1000000,[Kt Value], Null)

Don't use a zero length string "", use Null. If you use the zero-length
string Access will convert the [Kt Value] from a number type to a string type.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
How would you do this one?

SAT to 1M=IIF(AND([KT Value]>100000,{KT Value]<1000000),[KT Value],"")

KARL DEWEY said:
Below SAT: IIF([KT Value]<100000,[KT Value],"")

The function is IIF not IF.

--
Build a little, test a little.


:

Can someone assist with this


Below SAT: IF([KT Value]<100000,[KT Value],"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top