Results 1 to 2 of 2
  1. #1
    Rhubie is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    85

    Or operator

    Can I use the or operator in Access 2010

    IIf(Mid([WBCode],4,1)="D" or "N"....

    I am finding that I can use AND and LIKE, but not seeing the OR

  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,641
    I doubt you used AND like that. Both require the field to be repeated:

    IIf(Mid([WBCode],4,1)="D" or Mid([WBCode],4,1)= "N"....
    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. Replies: 1
    Last Post: 12-02-2011, 03:59 PM
  2. Cannot use UNION operator in subquery?
    By EvanRosenlieb in forum Queries
    Replies: 6
    Last Post: 10-27-2011, 04:33 PM
  3. Add operator not working as expected
    By g4b3TehDalek in forum Queries
    Replies: 4
    Last Post: 10-05-2011, 01:09 PM
  4. in operator
    By pchang in forum Access
    Replies: 1
    Last Post: 01-16-2011, 06:24 AM
  5. Missing Operator error
    By data123 in forum Forms
    Replies: 1
    Last Post: 03-15-2009, 04:34 PM

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