Results 1 to 3 of 3
  1. #1
    Hwyn9a is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Location
    Cardiff South Wales UK
    Posts
    2

    Like operand in Iif Or expression

    Hello, I was wondering if anyone can point me in the right direction, I'm trying to simplify the following expression ( which works fine ) by using "Like" "Bank account" and Like "Received" as those words appear in all the criteria, but I haven't had any success.




    Expr1: IIf([Type]="Add Funds from a Bank Account" Or [Type]="Withdraw Funds faster to a bank account" Or [Type]="Withdraw Funds to a Bank Account","Bank Funds",IIf([Type]="Payment Received" Or [Type]="Mobile Payment Received" Or [Type]="Fast Payment Received","Funds Received","Check"))


    Regards Robert

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    Try
    Code:
    IIf([typ] Like "*Bank Account*", "Bank Funds", IIf([typ] Like "*Received*", "Funds Received", "Check"))
    I changed your Type to Typ for demo.

  3. #3
    Hwyn9a is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Location
    Cardiff South Wales UK
    Posts
    2
    Thank you very very much, Orange! I tried and tried and tried to resolve it before i sent my first post and it was a silly syntax error that messed me up, you make it look so easy i'm in awe.
    Thanks for resolving my issue

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

Similar Threads

  1. Expression Help
    By Hammer in forum Queries
    Replies: 2
    Last Post: 01-14-2011, 10:30 AM
  2. Looking for help with an expression
    By CoachBarker in forum Queries
    Replies: 3
    Last Post: 11-25-2010, 05:17 AM
  3. Dlookup Expression Help
    By chrismja in forum Queries
    Replies: 10
    Last Post: 10-29-2010, 03:42 PM
  4. Expression value
    By KWarzala in forum Reports
    Replies: 0
    Last Post: 06-15-2010, 12:35 PM
  5. Help With an expression
    By kylem4711 in forum Queries
    Replies: 2
    Last Post: 04-23-2009, 01:57 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