Results 1 to 2 of 2
  1. #1
    terry6582 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Dec 2017
    Location
    TN
    Posts
    21

    problem with calculations in a form.

    Have a DB with a form to collect data. Have a problem with a calculation on the form. The data entry on the form look similar to this example:

    check box Pre registration for couple. cost

    the formula in the query look like this: prereg: IIf([adults]=-1,IIf([received]<DateValue([last_prereg_date]),Val([fee_couple]),[couple_late]),"$0.00 “)



    The formula will calculate the correct amount and put in the form in
    currency format. However, it only displays the exact amount not in currency format.

    properties for the field in the form is set for currency with 2 decimals. When the box is not checked it will display with the default data in the formula ($0.00)

    What do I need to do to this formula to achieve the correct format: currency ($150.00) instead of 150 currently displayed

    Help!!

    Thank you!

  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,652
    Just put 0 in the false clause instead of in quotes. That makes it a string value, thus a numeric format won't affect it.
    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. Calculations in a form
    By UT227 in forum Forms
    Replies: 7
    Last Post: 07-14-2016, 04:19 PM
  2. Replies: 30
    Last Post: 09-30-2015, 10:58 AM
  3. Query calculations problem
    By ajkosby in forum Queries
    Replies: 3
    Last Post: 07-01-2013, 02:45 PM
  4. Problem with textboxes and calculations
    By Zergal in forum Forms
    Replies: 2
    Last Post: 07-31-2012, 08:22 AM
  5. Problem with calculations on a Datasheet
    By mooseless05 in forum Access
    Replies: 7
    Last Post: 11-15-2010, 10:02 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