iif statments
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Iif Statments

Iif Statments

resolvedResolved · Urgent Priority · Version 2003

replyReply Wed 26 Nov 2008, 08:41Delegate Vinay said...

Vinay has attended:
Access Intermediate course
Access Advanced course
Excel Intermediate course
Excel Advanced course

Iif Statments

On a query I got a field called Current Status which displays a drop down list on the following possible answers In Progress, New, Pending PR, Pending OS and Complete.

I would like to know which orders are complete and which are incomplete.

I have used this statement but all i get is just the complete orders.

iif[CurrentStatus]="Complete","Complete","Incomplete")

But I want the user to select either complete or incomplete and then the data will come up. of that particular order wether its complete or incomplete.

Please Help ?

For upcoming training course dates see: Pricing & availability

replyReply Wed 26 Nov 2008, 10:41Trainer Andrew said...

RE: iif Statments

Hi Vinay

Thank you for your question. One approach might be to have two queries - one that finds records where the status field matches "complete" the other where the status field criteris is "not complete" i.e everything else.

Let me know if this doesn't answer your question or if you have any other questions.

Kind regards,
Andrew

Tue 2 Dec 2008: Automatically marked as resolved.

 

Please browse our web site to find out more about
microsoft/access/training/courses and other Microsoft training courses.

Access tip:

Create calculated fields that work out your age

You can uset eh year function to work out the year from NOW function and then subtract it with your date of birth type field

Age=Year(Now( ))-Year([DoB])

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard