Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

IIf Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mkb - 29 Apr 2005 18:34 GMT
I keep getting error messages with the syntax or commas in my IIf function.
I've listed it as IIf(And([Sq Ft]=>70,[Sq Ft]<=280),1,[Sq Ft]/140). What am I
missing or what have I stated incorrectly?
Klatuu - 29 Apr 2005 18:46 GMT
The syntax is incorrect on your And
IIf([Sq Ft]=>70 And [Sq Ft]<=280 ,1,[Sq Ft]/140)

> I keep getting error messages with the syntax or commas in my IIf function.
> I've listed it as IIf(And([Sq Ft]=>70,[Sq Ft]<=280),1,[Sq Ft]/140). What am I
> missing or what have I stated incorrectly?
Van T. Dinh - 30 Apr 2005 05:44 GMT
Is this an Access question or Excel Question?

If it is Access, there is no "And" (spreadsheet) function in Access.  You
need to use the And Boolean operator, i.e.

   {Boolean expr} And {Boolean expr}

Signature

HTH
Van T. Dinh
MVP (Access)

> I keep getting error messages with the syntax or commas in my IIf function.
> I've listed it as IIf(And([Sq Ft]=>70,[Sq Ft]<=280),1,[Sq Ft]/140). What am I
> missing or what have I stated incorrectly?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.