Results 1 to 4 of 4
  1. #1
    That_Guy is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    13

    Syntax error in query expression

    HI Guys, first post of many to come I am sure. My role at work is Access heavy and I have very limited experience in it. I am impressed with Access, it is a very powerful tool. As always, with power comes complexity. This one I am sure is easy for you though... I just can't find the error. Please help. This is in a Query, this expression is in the 'Field:' This is the pop up I am receiving.



    Syntax error in query expression '[DATA MANSI].[Round([DATA MANSI]].[Jul,2)]

    This is what the data in DATA MANSI Table under Jul colum are numbers with 2 decimal spots, ie; 710.54.

    How can I fix this? 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,652
    You only want the square brackets around the table name. They are required because of the inadvisable space.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The syntax is all messed up.

    The format of the Round function is:
    ROUND(fieldname,precision)

    So you just want to drop the field name in the middle of it, i.e.
    Expr1: ROUND([DATA MANSI].[Jul],2)

  4. #4
    That_Guy is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    13
    Quote Originally Posted by JoeM View Post
    The syntax is all messed up.

    The format of the Round function is:
    ROUND(fieldname,precision)

    So you just want to drop the field name in the middle of it, i.e.
    Expr1: ROUND([DATA MANSI].[Jul],2)


    Worked like a charm. Thanks! Probably going to have another question in 30 minutes. HA

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

Similar Threads

  1. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  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

Tags for this Thread

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