473,654 Members | 3,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

72 New Member
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 4850
Rabbit
12,516 Recognized Expert Moderator MVP
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
Dave Smith
72 New Member
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
1748
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 ident NewsTitle char NewsDate smalldate NewsText Text When I'm writing to the page I'm putting
4
4022
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 database. (set as a date field) I am using <% session.lcid=2057 %> in my header to force UK date format.
2
1919
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 repeated for each page. now that I have a txt table with several colums I convert back the comlumns in to the format I need to perform other table: I mainly have to convert text fields in to Dates and numbers.
2
1374
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 'March 6, 2006 10:04 am' next date have to be today. The expected output number of days and hours. Later on I will add some If statements if days > 1 then 1day.gif etc. This is required to my web based rss agregator.
5
2101
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 the functions that find the day of week and a function that can (in this case) subtract 3 days to get sunday and add 7 for saterday. I can do the rest. Desmond.
1
1181
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 date... Urgent Need Help pls....
1
1320
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 consists of 3 fields - Date, Serial #, Model # Currently I have the Serial # & Model # taged as the Primary key - But..... Now I am being told that items might come back more than once...
1
1378
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 can I only grab 1st date of month to current date. For example: Today's date is 26/10/07. So I want to grab data from 01/10/07 to 26/10/07. I hope I explained it right. Please help ASAP. Thanks guys :o) Kind Regards,
1
1046
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 look look like this (8-21-2008) but would show 10-16-2008 Tomorrow would be (8-22-2008) but would show 10-17-2008 and it would continue to update day after day. Is this possible?? If I am in the wrong forum, could you please let me know where I...
1
2835
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 and will return the name of persons who are on call between Start and End date. Can someone help Me.
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
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...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6161
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
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
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
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.