IIF

  • Thread starter Thread starter Frances
  • Start date Start date
F

Frances

What is the immediate If in Access 2007? Why not just If? The other
functions such as SUM and COUNT are the same as in Excel.

Just curious!
 
Hi Francis,

The IIF function in Access allows you to resolve a question in one line
like:
Description = IIF(Age > 30, "Old", "Young")
That means that you can use it in queries, controls, etc.
Access does have an IF function that is only available if you are writing
VBA Code.
It looks like :
IF age is > 30 then
Description = "Old"
Else
DEscription = "Young"
End If

To make things more confusing, Excel has an IIF function that is only
available in its VBA code.

Why the differences - They were brought along and developed for different
markets by different Microsoft groups. That said they are much more uniform
today then in the mid 90s.

Regards

Kevin
 

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

Similar Threads

Aggregate Function Error 0
Count Function 6
IIf expression help needed 5
Access Query problem 1
Help with Iif on Report 4
The death of music TV channels in UK - but not Europe? 4
Access count a field in access report 2
Count Query 3

Back
Top