Rocky Smolin at Beach Access Software
rockysmolin at bchacc.com
Wed Apr 9 11:29:40 CDT 2008
Chester: I don't know what's wrong with the Cdec but IME 'Wrong Number of Arguments' is one of the least helpful error message in all of Access. It usually means that there's a syntax error in your SQL or what's being passed to the Cdec is invalid - very misleading message. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, April 09, 2008 9:02 AM To: Access Developers discussion and problem solving Subject: [AccessD] Wrong number of arguments I am confused as to why the following field in a query returns the error message of wrong number of arguments. The expression works fine without the CDec. What am I doing wrong? Factor_1: CDec(IIf([SumOf3mo_rbi]=0,[Allocations]![Factor_1],[3mo_rbi]/[SumOf3mo_r bi])) Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.10/1366 - Release Date: 4/8/2008 5:03 PM