Results 1 to 3 of 3
  1. #1
    kwilliams5675 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    3

    IIF Between Expression in Access 2003

    I have written the following expression to label data between a certain range and I am getting errors. Can someone identify what I am doing wrong.

    Type: IIf([Table_Name]![Field_Name] >=500 & <=599,'Member', IIf([Table_name]![Field_Name] >=200 & <=299, 'Agent'))

    Any help is greatly appreciated.

  2. #2
    Rhino373 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    65
    IIf([test].[alpha]>=500 And [test].[alpha]<=599,"Member",IIf([test].[alpha]>=200 And [test].[alpha]<=299,"Agent",[test].[alpha]))

    Turn your exclamation points into periods and change your ampersands into AND

  3. #3
    kwilliams5675 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    3
    Thanks Rhino! Worked great!

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

Similar Threads

  1. Expression changes between Access2000 and 2003
    By INeedHelp in forum Programming
    Replies: 0
    Last Post: 03-17-2011, 08:09 PM
  2. Date of Birth Access expression
    By Father John in forum Access
    Replies: 5
    Last Post: 12-02-2010, 10:33 PM
  3. Using Regular Expression $ in Access Queries
    By rkdiekhoff in forum Queries
    Replies: 1
    Last Post: 01-20-2010, 12:50 PM
  4. Write excel expression in access
    By ktmchugh in forum Queries
    Replies: 0
    Last Post: 07-01-2009, 02:47 PM
  5. Replies: 1
    Last Post: 09-06-2006, 11:48 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