Results 1 to 13 of 13
  1. #1
    Join Date
    Aug 2010
    Posts
    7

    Form

    I have built my tables and have built a form. How do I make the last cell in the form perform a calculation?

    Bill

  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
    Along the lines of a control source of:

    =[FieldOne] + [FieldTwo]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Aug 2010
    Posts
    7
    I doesn't work.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not sure how you expect anyone to help without posting exactly what you're trying to do and what you tried that "doesn't work".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Join Date
    Aug 2010
    Posts
    7

    Form

    Sorry,

    I have built a database, put together my tables and have built a form that I use for record entry. My old database ( DOS ) will total the fields at "Total Fees" when I tab to it at the end of the form and gives a total for the fees in the form. I can do just about anything with Access, EXCEPT I can't make the last cell in the form ( Total Fees ) calculate and give me a total. I have tried, I even bought books, but to no avail. Any help would be appreciated.

    Bill

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Are you trying this in a table or on a form? You can't have calculated fields in a table, but it's quite common to do it on a form. Can you post the db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I didn't find a sum property in a textbox in form. I only find it in report.

    you can put
    =dsum("FEE","TableName")
    in a text box to get the total, but need to refresh every time any number is changed.

  8. #8
    Join Date
    Aug 2010
    Posts
    7
    I am trying to do it in a FORM. Tell me how to post the DB and I will.

    Thanks,

    Bill

  9. #9
    Join Date
    Aug 2010
    Posts
    7
    I think I figured out how. ( I have NEVER used a Forum before ). Here it is.

    Bill

  10. #10
    Join Date
    Aug 2010
    Posts
    7
    Here is my DB

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The attachment didn't make it. Make sure it's under the size limit. If you compact/repair then zip, it should be fine.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    Join Date
    Aug 2010
    Posts
    7

    DB

    See if this works.

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I don't see where you tried what I suggested. You do seem to be trying to store the calculated value. This has thoughts on why you shouldn't but gives a method to do so:

    http://allenbrowne.com/casu-14.html

    I would also point out that the table structure is not what is called "normalized". Having a field for each fee will cause you a lot of work down the road when somebody wants to add a new fee. Fees should typically be in a related table where you have a record (row) for each fee on an inspection. If you charged 3 fees for an inspection, there would be 3 records in that table for that inspection. Fields in that table would include the ID field from the main table, the fee type, and the amount.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

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