Results 1 to 6 of 6
  1. #1
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85

    I have a few calculation problems

    So the reason I keep posting this is because I was asked to create a databse from an excel spreadsheet. Unfortunately the excel calculations dont always work in the access enviroment. Here is another one that won't work for me.

    This is the excel calculation
    =If([AveragePHMeasured]=0,0,If(Or([AveragePHMeasured]>6.4,[AveragePHMeasured]<5.5),5,0))




    This is the calculation I built for Access
    =IIF([AveragePHMeasured]=0,0,IIF(Or([AveragePHMeasured]>6.4,[AveragePHMeasured]<5.5),5,0))

    I get the error back

    The expression you entered contains invalid syntax
    You may have entered a comma without proceeding value or identifier.

    Any help would be appreciated. Unfortunately I will probably have a few more questions after this one.

    Thanks

    Brad

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    =IIF([AveragePHMeasured]=0,0,IIF([AveragePHMeasured]>6.4 OR [AveragePHMeasured]<5.5,5,0))

    Give that a whirl

  3. #3
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85
    Thanks worked perfectly, one down many to go.

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Anytime. Go ahead and mark the thread as "solved" please so that others can search for it.

  5. #5
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85
    not sure how to mark as solved?

  6. #6
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    it's under the "thread tools"

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

Similar Threads

  1. Calculation Help
    By edge5511 in forum Programming
    Replies: 4
    Last Post: 12-18-2015, 11:11 AM
  2. Another calculation problem
    By stryder09 in forum Access
    Replies: 8
    Last Post: 03-08-2011, 03:11 PM
  3. Need help with calculation please
    By Gabriel984 in forum Forms
    Replies: 6
    Last Post: 09-09-2010, 12:06 PM
  4. Calculation Help
    By ErnieS in forum Access
    Replies: 13
    Last Post: 07-08-2010, 08:35 AM
  5. Calculation
    By thestclair in forum Reports
    Replies: 1
    Last Post: 04-29-2006, 11:03 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