Results 1 to 2 of 2
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    CDec() Formatting

    I am trying to convert a field in an access query to show 6 decimal places. This is what I have currently and I get an error of 'The expression you entered has a function containing the wrong number of arguments'

    Code:
    CDec([field])


  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You cannot use CDec in a query, only in VBA. See: http://support.microsoft.com/kb/225931/en-us

    You should just be able to format the result to show 6 decimal places. Just right-click on the field name in the Query Builder to bring up the Properties of the field, and enter 6 in the Decimal Places property.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. conditional formatting
    By azhar2006 in forum Forms
    Replies: 4
    Last Post: 07-14-2014, 10:26 AM
  2. formatting
    By krishnanhemanth in forum Forms
    Replies: 5
    Last Post: 12-05-2013, 01:06 PM
  3. Even Odd row formatting
    By Perceptus in forum Reports
    Replies: 3
    Last Post: 12-06-2012, 01:50 PM
  4. Conditional Formatting vs. VBA Formatting
    By gopherking in forum Reports
    Replies: 5
    Last Post: 11-09-2011, 06:53 PM
  5. Between formatting
    By reidn in forum Queries
    Replies: 2
    Last Post: 07-21-2011, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums