Solved

Formula invalid syntax

Posted on 2014-03-07
3
275 Views
Last Modified: 2014-03-07
The following code in my query isn't working properly. It says there is an invalid syntax. After I hit OK it highlight the first semi-colon between the first two 31500;315000.

Any idea what I need to change?

I am using the following code:

Result: IIf([Rec]>=315000;315000;[Rec])*0.00015873+IIf([Rec]-315000>0;IIf([Rec]>=374000;59000;[Rec]-315000);0)*0.000423729+IIf([Rec]-374000>0;IIf([Rec]>=480000;106000;[Rec]-374000);0)*0.000471698+IIf([Rec]-480000>0;IIf([Rec]>=585000;105000;[Rec]-480000);0)*0.000714286+IIf([Rec]-585000>0;[Rec]-585000;0)*0.000588235

Open in new window

0
Comment
Question by:cansevin
3 Comments
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39912967
I can't tell where you're from but in the American English version of Access, we use the comma as a separator not the semi-colon.  Try using a comma.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 39912969
Use ,  NOT ;
0
 

Author Closing Comment

by:cansevin
ID: 39912979
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question