Results 1 to 2 of 2
  1. #1
    qbc is offline Advanced Beginner
    Windows 2K Access 2003
    Join Date
    Aug 2009
    Posts
    30

    If statement in reports

    Hi,
    I am wondering if it is possible to create the following in a text box in reports.



    I would like the software to take a look at one field and return a value in a new field based on the first field.

    for example,
    if field agency is 1 then enter CAD

    anyone know how to do this?

    thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Check out the IIf() and Switch() functions. The first for a choice or two, the second for any more. You might also consider a table with the two values, enabling you to join that table and return the CAD value as one of the available fields for your report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. If statement for image
    By turbo910 in forum Forms
    Replies: 1
    Last Post: 11-30-2009, 04:58 AM
  2. IIF statement
    By james1982 in forum Access
    Replies: 1
    Last Post: 07-20-2009, 09:38 AM
  3. how to use IF then statement
    By ronnie4 in forum Access
    Replies: 1
    Last Post: 03-17-2009, 11:32 PM
  4. IF Statement with Minutes
    By sal_gxer in forum Queries
    Replies: 0
    Last Post: 02-12-2007, 08:39 AM
  5. multiple iif statement NEED HELP PLZ
    By scott munkirs in forum Reports
    Replies: 1
    Last Post: 09-27-2006, 05:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums