Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 9th, 2004, 12:41 PM
Registered User
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIF Statement

I have a text box on a report called Procedure that has a record source of Procedure.

I am trying to make the record source be:


instead of displaying the "0", what I really want is to skip the 0s and go to next. Any idea how to do that?

Thank you.


Old August 2nd, 2004, 01:51 PM
Authorized User
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts

=iif([Category]="Glasses",[Procedure],"") will produce a blank

I'm not sure what you mean by go to next, next record or next category?
Old August 3rd, 2004, 01:32 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts

why don't you have, in the SQL that is the recordsource, something like:
SELECT YourField1, YourField2, IIF([Category]='Glasses',[Procedure],Null) 
FROM YourTable
WHERE Category='Glasses'

I am a loud man with a very large hat. This means I am in charge

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I make this a IIF Statement Corey Access VBA 1 November 3rd, 2006 08:40 AM
Iif statement in Access rangeview Access 7 March 28th, 2006 01:14 PM
iif Statement giving me a headache! MrMacca BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 January 7th, 2005 05:49 AM
IIF Statement golden Access 3 July 12th, 2004 07:49 PM
IIF Statement Question fastcorvette Access 8 October 31st, 2003 11:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.