473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to fix "has a function containing the wrong number of arguments" error?

Hi everyone again.

I’m working on making my database roll with each month that changes.
Below is what I have so far, and was hoping someone could help me with the rest.

The error message I’m getting is:
The expression you entered has a function containing the wrong number of arguments.

Expand|Select|Wrap|Line Numbers
  1. Jan_Loan_Amount: Sum(IIf([CORRESPONDENT_PURCHASE_DATE] Between DateSerial(Year(Date()),Month(Date())-13,1) And DateSerial(Year(Date()),Month(Date())-12,0),[Amount_Actual_Loan])And Trim([OMNI_Status1])>"?9?",1,0)))
Expand|Select|Wrap|Line Numbers
  1. Feb_Loan_Amount: Sum(IIf([CORRESPONDENT_PURCHASE_DATE] Between DateSerial(Year(Date()),Month(Date())-12,1) And DateSerial(Year(Date()),Month(Date())-13,0),[Amount_Actual_Loan])And Trim([OMNI_Status1])>"?9?",1,0)))
Thanks for your help
Feb 7 '11 #1
2 4815
Rabbit
12,516 Expert Mod 8TB
Break it out into sections and you'll see the problem.
Expand|Select|Wrap|Line Numbers
  1. Jan_Loan_Amount: Sum(
  2.   IIf(
  3.     [CORRESPONDENT_PURCHASE_DATE] Between
  4.       DateSerial(Year(Date()),Month(Date())-13,1)
  5.     And
  6.       DateSerial(Year(Date()),Month(Date())-12,0)
  7.   ,
  8.     [Amount_Actual_Loan]
  9.   ) 
  10.   And
  11.   Trim([OMNI_Status1])>"?9?"
  12.   ,1,0
  13. )
  14. )
  15. )
Feb 7 '11 #2
sorry Rabbit - cant see it. any help?
Feb 8 '11 #3

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

Similar topics

2
by: kmeds | last post by:
I am creating a news script in ASP 3.0 with SQL 2000 backend. I'm new to SQL (I used to use Access exclusively... :( ) In any case I have a database of the News set up like this" NewsIDNum int...
4
by: Si | last post by:
Hi there. I have a page on a website I am building where is want to look for all records added in the last 60 days. The date is added in short UK format, that is 25/12/2003 in an access...
2
by: Giulio | last post by:
I make an import of a huge file txt table with headers at each page and date format as "20.12.2004" in order to use the data I first qo a query that exclude all line representing the headers...
2
by: dkrysmann | last post by:
Hi, I'm very new to this group and the php, now I've question about date function. I need function how to calculate time diffrence between two dates. First date: $rs['lastBuildDate' is like...
5
by: Des | last post by:
I have to do an events calender for a church. The events display will be limited to that week. If someone went in today Wed 24th I want to display 21st to 27th. I dont want any code samples, just...
1
by: Dayon | last post by:
how to know if the current date is between 2 date !!! erm , for example rsMovie! <= Combo2.Text <= .rsMovie! how to know the date that i select in combo is between the start date and end...
1
by: scolivas | last post by:
Hi all, I have a situation that is requiring me to make an Entry Date part of the Primary Key. Problem I am having is that it includes the time too. What I have is an inventory return table. It...
1
by: Sammy82 | last post by:
Hi Guys, I'm new to all this so please excuse my terminology. I have a database that gets updates everyday with new data. I have created a query in access to extract the data I require, but how...
1
by: tondalynn88 | last post by:
I am trying to write something that will take todays current date and add 56 days to it and display that end date THEN rest itself the next day, and the day after that, etc. I.E. Today would...
1
by: JP Roy | last post by:
I am pretty new at Ms Access but need to create a query that will return a value if today's date is between a Start Date and End Date fields of my database. I am creating a database that I can query...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.