Results 1 to 4 of 4
  1. #1
    ivanver is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    3

    Access 2007 syntax error in query

    The following sql code in query:

    SELECT
    1 AS RedObr,
    1 AS Nom,
    1 AS Maks,
    1 AS ISv33,
    1 AS Izr,
    1 AS Nor,
    IIf( RedObr >= Nom AND RedObr <= Maks, Maks - RedObr,
    IIf(Izr - ISv33 > Maks – Nom,
    IIf(Izr <= Nor – Maks, Izr, Maks-Nom),
    IIf(Izr <= Nor – Maks, 0, Izr - ISv33))) AS ISv43
    FROM Dummy
    WHERE 1 =1;



    At saving answers: Syntax error (missing operator...
    What's wrong?
    Problem is isolated down.

    Best regards, Ivan
    Last edited by ivanver; 04-23-2011 at 04:42 AM. Reason: errors

  2. #2
    ivanver is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    3
    Mistake is in using hyphen instead of minus sign

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So is this thread resolved? Are you ready to use the Thread Tools and markn this thread as Solved?

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by RuralGuy View Post
    So is this thread resolved? Are you ready to use the Thread Tools and markn this thread as Solved?
    I love it! I can set my watch by these posts...

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

Similar Threads

  1. syntax error in query
    By zoe.ohara in forum Queries
    Replies: 6
    Last Post: 04-23-2011, 04:58 AM
  2. syntax in query expression #ERROR help!
    By manos39 in forum Queries
    Replies: 1
    Last Post: 02-26-2011, 12:21 PM
  3. Syntax Error in Query Expression on filter
    By alaric01 in forum Forms
    Replies: 1
    Last Post: 10-14-2010, 07:23 AM
  4. Syntax error (comma) in query expression?
    By TheWolfster in forum Queries
    Replies: 5
    Last Post: 05-10-2010, 12:02 PM
  5. Syntax error (comma) in query expression
    By KLynch0803 in forum Programming
    Replies: 3
    Last Post: 01-18-2010, 03:35 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