Results 1 to 5 of 5
  1. #1
    galaxy24 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Posts
    2

    Form computation

    I have a form which has three fields. Field 1 and field 2 need to be added together with the total being displayed in field 3. After inputing 100 in field 1 and 500 in field 2 this is what I have displaying so far:

    Field 1 displays: 100
    Field 2 displays: 500
    Field 3 displays: 100500

    This is what I need it to display:
    Field 1 displays: $100
    Field 2 displays: $500
    Field 3 displays: $600

    This is what I have in my fields:
    Field 1: ALH-NFRONT
    Field 2: ALH-NBACK
    Field 3: =[ALH-NFRONT]+[ALH-NBACK]



    I checked the properties of fields 1, 2, and 3 and the format is set to currency with 0 decimal places. I am not sure what additional settings need to be made to have the currency show with the proper comptation.

    Any input would be helpful.

    Thank you.

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Sounds as if your fields are not numeric, but are text format. Check the field type setting in the underlying table.

    John

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    That should work. Are Field1 and Field2 bound or unbound fields?
    If they are bound fields, what is the data type of the fields that they are bound to?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    By fields you mean textboxes bound to table fields?

    Are these fields Number type with Currency format or Currency type? I have tested both and cannot replicate the issue. If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    galaxy24 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Posts
    2
    John-that did the trick! Thank you for the help. Its not often I work in Access but I added this info to my notes. I should be good to go on this next time! And thanks to the others who gave thier input as well. Have a good one!

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

Similar Threads

  1. Half-day leave computation
    By bsvubana in forum Access
    Replies: 5
    Last Post: 11-29-2012, 02:28 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