Results 1 to 2 of 2
  1. #1
    rayc is offline Novice
    Windows XP Access 2002
    Join Date
    Dec 2005
    Location
    Montreal, Canada
    Posts
    19

    Format problem in Access reports/forms

    My Access (adp) file has reports and forms that fetch data from an SQL Server table that has a UnitPrice field with data type decimal(20,5). When my reports generate, the Format property and Decimal property seem to get ignored by Access for this field. The Textbox has Format=Currency and Decimal=2. But the report shows for example 1.50000 instead of $1.50.



    The reason why the UnitPrice field has 5 decimals is because in some cases we have values of 0.01395 as a unit price (i.e. paper clips). We need 5 decimals so that the report rounds off better when showing the total on the invoice. So I would like for it to show $0.01395 when all 5 decimals are relevant. But in cases where a unit price is just 1.50, I would like to see $1.50 on the report, not 1.50000.

    Can anyone tell me how to do this in the reports?

    Thanks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    My guess is that something is causing the field to be viewed as text. You can try wrapping in the CCur() function, or one of the others.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Problem with Access Queries\Reports
    By Crysis3nt in forum Access
    Replies: 1
    Last Post: 09-09-2010, 02:26 AM
  2. Forms and Reports
    By nacho in forum Forms
    Replies: 3
    Last Post: 04-17-2010, 01:06 AM
  3. Newbie format number problem
    By mrbob2 in forum Queries
    Replies: 9
    Last Post: 01-18-2010, 07:18 AM
  4. Creating Watermark in Access Reports / Forms
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 11-21-2008, 07:11 AM
  5. Replies: 0
    Last Post: 03-27-2008, 08:20 AM

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