Results 1 to 3 of 3
  1. #1
    star777 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2018
    Posts
    1

    Problem!

    Hi All,
    I am a new member on this site. Could you please help on this problem.

    For the selected vendors:
    A) if at least one of the indicators LOEVM, SPERR, or SPERM ="X", set COMPANIES.DISABLED to "1"
    ELSE
    B) If SPERQ = one of the values below:
    PA (Vendor Moved)
    PD (Block for Duplication)
    PE (Block for Commercial Issue)
    QF (Disapproved)
    QG (Inactivated)
    QH (Unapproved)
    set COMPANIES.DISABLED to "1"
    ELSE:
    C) set COMPANIES.DISABLED to "0".



    I tried with
    "IIf([LOEVM]="X" and [SPERQ]="PA" or "PD" or "PE" or "QF" or "QG" or "QH",1 Or 0,IIf([SPERR]="X" And [SPERQ]="PA" or "PD" or "PE" or "QF" or "QG" or "QH",1 or 0,IIf([SPERM]="X" And [SPERQ]="PA" or "PD" or "PE" or "QF" or "QG" or "QH",1,0)))
    "
    didn't work.

    Thanks.

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Cross posted at https://www.access-programmers.co.uk...=1#post1584687

    Please read this link about the etiquette of cross posting https://www.excelguru.ca/content.php...-cross-posters
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    IIf(LOEVM = "X" Or SPERR = "X" Or SPERM="X" Or SPERQ IN("PA","PD","PE","QF","QG","QH"), 1, 0)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 9
    Last Post: 07-06-2015, 01:47 AM
  2. Replies: 2
    Last Post: 10-31-2012, 11:52 AM
  3. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  4. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 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