Article ID: 225931 - Last Review: April 16, 2010 - Revision: 2.0 Error message when you use the CDec() function in an Access query: "The expression you entered has a function containing the wrong number of arguments"
This article was previously published under Q225931 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb). On This PageSYMPTOMS
When you use the CDec() function in a Microsoft Access query, you may receive the following error message:
The expression you entered has a function containing the wrong number of arguments.
CAUSE
The CDec() function is supported in Visual Basic for Applications code, but not in Access queries.
RESOLUTION
Create a custom function that uses the CDec() function. Call this custom function from your Access query. For example:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce BehaviorOffice Access 2002 and Office Access 2003
Office Access 2007 and Office Access 2010
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
