Results 1 to 3 of 3
  1. #1
    ShadeRF is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    24

    Iif like

    I have a statement in my query like this:

    TotalNet: IIF(Brand Like "BRANDX" OR "BRANDY*", Formula1, Formula2

    However even if i have BRANDZ it still choose formula1. I assume this has to do with the OR statement but I'm not sure. How can I fix this? Thanks so much for your help.

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    TotalNet: IIF((Brand Like "BRANDX") OR (Brand Like "BRANDY*"), Formula1, Formula2

    Does that work for you?

  3. #3
    ShadeRF is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    24
    Yes, thanks for all your help on my recent posts!

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

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