473,785 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to fix "The expression you entered contains invalid syntax"

3 New Member
I am trying to convert this excel expression into an Access expression:

=IF(OR(B79="",B 62="", H7=""),"Require d Fields Incomplete",IF( AND(F87<20000,O R(J87>P14, B87>P37)),"Yes, this is a HIGH COST loan. Proceed to Step 5 Excluded Fees Test.",IF(AND(F 87>=20000,J87>P 12),"Yes, this is a HIGH COST loan.","No, this is NOT a High Cost loan")))

I've converted the cell numbers to field names, however I am unable to overcome the error message: "The expression you entered contains invalid syntax. you may have entred a comma without a preceding value or identifier.

This is what I have entered into ACCESS:

=IIf([Amount financed]=" " Or [Tot fees]=" " Or [Loantype]=" ","Required Fields Incomplete",0,i if(AND([division]<20000, OR [High Cost Determination]>.08 OR [Division]>1000, "YES, this is a HIGH COST loan Proceed to Step 5 Excluded Fees Test",0, iif ([Division]>=20000, AND [High Cost Determination]>.04,"Yes, this is a High Cost Loan","No, this is NOT a High Cost loan" )))

Please assist and thanks

Steve
Jan 30 '11 #1
1 12148
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
You are supplying 4 arguments in your first IIF statement, and the IIF statement only takes 3 arguments.

If your trying to validate the data entry there are much better ways of doing this, such as the Form's BeforeUpdate event. If you try to explain what your needs are, Im sure me or someone else can offer some competent advice.
Jan 30 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1792
by: muesliflakes | last post by:
I have tried to build an Installation Project for to different applications. Both are simple. Steps Taken: * Add New Setup Project to the solution * Set the project out to the application project (Active) * Build Installation Project When I try to run the setup.msi, a MessageBox comes up saying "The
0
457
by: Keith Smith | last post by:
When I create a setup file (MSI) for my app, I get the following error when I try to run the MSI file... The folder path '.' contains an invalid character Does anyone know a solution to this? I have looked on Google and have not found an answer.
1
6497
by: acool | last post by:
I just created a simple Windows Service in VB.NET. I right clicked on the component and added the installer, installed via InstallUtil.exe all went well until i try to do a net start and then I get: "the service name is invalid" WHY??
7
9538
by: Søren Dreijer | last post by:
Hi, I have a mixed C#, managed C++ and unmanaged C++ project. The managed class calls a method which exists in an unmanaged singleton class. During the entire lifetime of the application, this gives no problems whatsoever. However, upon shutdown an exception pops up: "The string binding is invalid" If I call the singleton method from inside a purely unmanaged class, I
0
5695
by: jens Jensen | last post by:
Hello, I'm trying to connect to a system via https. As an additional security measure, the server requires me to attach an x509 certs to my "HTTP POST" request. I get the error described in the subject.
0
1202
by: paulhux174 | last post by:
"501 5.5.4 Invalid Address" error message . I have an ASP application that send emails to users on a network. Most of the time it succeeds but on the odd occasion it get the error above. I know the email addresses are correct. My questions are: How can I trace this easily? Is it an 'Exchange Sever' problem as the email addresses are correct?
18
7856
by: njgreen2001 | last post by:
I thought the length of this might give me problems. Any suggestions on how to shorten it? Expression: =IIf(="A Pos" And ="A Pos",(DLookUp("","")), IIf(="A Pos" And ="A Neg",(DLookUp("","")), IIf(="A Pos" And ="B Pos",(DLookUp("","")), IIf(="A Pos" And
10
4037
by: jonathanemil | last post by:
Hello, I am a 1st semester Computer Science student in a Python class. Our current assignment calls for us to read a list from a file, create a 2-dimensional list from the file, and check to see whether or not 2-dim list constitutes a "magic square" (i.e. all the rows, columns and diagonals equal each other when added). We are to create several definitions, and I have had no problem reading from the file, creating the list, and getting the...
6
6584
by: weston | last post by:
In Access 2000 I have a form with a tab control with 3 tabs. I have a button that is supposed to check if each question on the form has been completed. The code that is under this button is below. It works for the questions on the first 2 tabs but when it gets to the questions on the 3rd tab I get the following error message "The expression you entered refers to an object that is closed or doesn't exist". This code does work properly on...
5
10694
doma23
by: doma23 | last post by:
I have a big problem. I was working on a new application with lot of fields. After I defined all the fields (my hands still hurt) I saved the database. After that, I've added a command button on a main form and used save icon for it. After I tried to open it in Access 2003 nothing happened. No error messages, I just wasn't able to open the form. When I tried to the same on my laptop using Access 2007 I got this message: Run-time Error...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.