Results 1 to 3 of 3
  1. #1
    ANSFO is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    1

    too complex query

    hi everybody,
    my name is Antonio and I write from Italy.
    It's quite long time I use Access and it's my first time i see the following message
    Click image for larger version. 

Name:	too_complex_query.jpg 
Views:	10 
Size:	176.4 KB 
ID:	35810

    "TOO COMPLEX QUERY" for the following:

    KPI-2017: IIf([kpi-red]<0,2 And [kpi-strut-az]<0,25;([kpi-capacita-innovare]+[kpi-strut-az]+[kpi-red])/3;IIf([kpi-red]<0,2 And [kpi-strut-az]>0,25;([kpi-capacita-innovare]+[kpi-strut-az]+[kpi-red]+([kpi-strut-az]*0,8))/3;IIf([kpi-red]>0,2 And [kpi-strut-az]<0,25;([kpi-capacita-innovare]+[kpi-strut-az]+[kpi-red])/3;([kpi-capacita-innovare]+[kpi-strut-az]+[kpi-red])/3)))


    Can anybody help me?
    thanks

  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,518
    Ciao Antonio! Does it work if you simplify it to this (just as a test)?

    IIf([kpi-red]<0,2 And [kpi-strut-az]<0,25; ([kpi-capacita-innovare]+[kpi-strut-az]+[kpi-red])/3; 0)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Consider:

    ([kpi-capacita-innovare] + [kpi-strut-az] + [kpi-red] + IIf([kpi-red]<0,2 And [kpi-strut-az]>0,25, [kpi-strut-az] * 0,8; 0)) / 3
    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. Query is too complex
    By seocavaz in forum Queries
    Replies: 16
    Last Post: 07-27-2015, 09:10 AM
  2. Need help with complex Query
    By drnld in forum Access
    Replies: 4
    Last Post: 12-08-2014, 02:02 PM
  3. Query to complex....
    By zero3ree in forum Access
    Replies: 2
    Last Post: 03-21-2013, 09:17 AM
  4. Very Complex Query Help
    By Epidural in forum Queries
    Replies: 1
    Last Post: 05-14-2012, 12:13 PM
  5. Query is too Complex
    By ihealy1 in forum Queries
    Replies: 2
    Last Post: 11-18-2011, 04:46 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