Results 1 to 2 of 2
  1. #1
    nrsanand is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    1

    Query Issue in MS-Access


    Hi All,

    I am unable to find out what is the error in the below query

    IIf([a]<>0,(([a]-[b])/[a]),0) AS DIFF

    a- decimal value
    b- an integer
    . When i run the query with the above condtion, i am not able to get the value.
    Kindly advise whether this is right syntax or not.

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Syntax-wise, it looks good to me, though "DIFF" might be an Access reserved word. Try changing it to something else.

    What is the error you're getting?

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

Similar Threads

  1. Access DB issue with autonumber
    By cusfirstadmin in forum Forms
    Replies: 1
    Last Post: 12-02-2010, 10:45 AM
  2. Access 2007/Query issue
    By forrestapi in forum Access
    Replies: 8
    Last Post: 11-04-2010, 09:44 AM
  3. Query Issue
    By access in forum Queries
    Replies: 1
    Last Post: 01-14-2010, 03:28 PM
  4. Keep together issue (Access 12)
    By alpha in forum Reports
    Replies: 2
    Last Post: 06-02-2009, 08:21 AM
  5. Access Issue
    By uk in forum Access
    Replies: 0
    Last Post: 07-04-2007, 09:08 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