# (Simple?) MS Access Question

**URL:** <https://boards.straightdope.com/t/simple-ms-access-question/321449>\
**Category:** Factual Questions\
**Created:** [September 13, 2005, 5:25pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449 "2005-09-13T17:25:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMark](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMark](https://boards.straightdope.com/u/DMark)\
**Post date:** [September 13, 2005, 5:25pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/1 "2005-09-13T17:25:51Z")

</div>

It is a legal database. We have a table with Plaintiffs, and another table with Correspondence relating to each Plaintiff’s medical expenses incurred.

There are many more fields, but the relevant data:

Plaintiff Table: Plaintiff Name, Total Medical Expenses  
i.e. John Doe, $\_\_\_\_.00

Correspondence Table: Plaintiff Name, Individual Medical Expense  
i.e. John Doe, $100.00  
John Doe, $300.00

Query 1: Plaintiff Name, Sum Of All Medical Expense  
i.e. John Doe, $400.00

The query works beautifully.  
It adds all of the correspondence records for each plaintiff and keeps a running tally of each and every input in the Correspondence Table “Individual Medical Expense”.

What I want to do is have the running tally “Sum Of Medical Expense” populate a field in the Plaintiff form/table.

I know I have all the pieces of the puzzle, but I just can’t find a way to plop the Query field “Sum Of Medical Expenses” into the Plaintiff’s “Total Medical Expense” field in the Plaintiff table/form.

Every time I try, either the field remains blank, or I get “#Name?”

I am sure there is a very simple solution.

---

<div class="post-metadata">

**Author:** ![FatBaldGuy](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@FatBaldGuy](https://boards.straightdope.com/u/FatBaldGuy)\
**Post date:** [September 13, 2005, 5:34pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/2 "2005-09-13T17:34:17Z")

</div>

As an experienced database developer/designer I would have to ask, WHY???

One of the biggest problems with databases is having redundant data. It’s hard to maintain and too easy to get out of sync. If the Total Expenses can easliy be calculated by adding up the Individual Expenses there is no valid reason to store the Total Expenses in a separate place.

---

<div class="post-metadata">

**Author:** ![Jpeg\_Jones](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Jpeg\_Jones](https://boards.straightdope.com/u/Jpeg_Jones)\
**Post date:** [September 13, 2005, 5:39pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/3 "2005-09-13T17:39:16Z")

</div>

Agree with FatBaldGuy.

If you’re planning on using each plaintiffs’ total in a report or something, just base the report on the query, not on the original table.

There’s no reason to go through hoops to repopulate dynamic data into a source table. Just use the query, which you say works great.

---

<div class="post-metadata">

**Author:** ![DMark](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMark](https://boards.straightdope.com/u/DMark)\
**Post date:** [September 13, 2005, 7:07pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/4 "2005-09-13T19:07:12Z")

</div>

Why? Yeah, that is a simple solution.

I am creating this for some attorneys and thought it would be a nice feature for them to open the database, see the relevant Plaintiff data and have a running tally at the bottom of the Plaintif form to let them know the total costs to date.

Then again, as you have both cleverly noted, there is no particular reason I have to or should do this.

---

<div class="post-metadata">

**Author:** ![FatBaldGuy](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@FatBaldGuy](https://boards.straightdope.com/u/FatBaldGuy)\
**Post date:** [September 13, 2005, 7:17pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/5 "2005-09-13T19:17:04Z")

</div>

All you need to do is to place a calculation field on your form, so that the information is pulled up, but doesn’t need to be stored in the database.

---

<div class="post-metadata">

**Author:** ![zoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zoid/32/336_2.png) [@zoid](https://boards.straightdope.com/u/zoid)\
**Post date:** [September 13, 2005, 7:43pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/6 "2005-09-13T19:43:00Z")

</div>

> [@FatBaldGuy](#):
>
> All you need to do is to place a calculation field on your form, so that the information is pulled up, but doesn’t need to be stored in the database.

There’s you correct answer right there - and quick too 😉

---

<div class="post-metadata">

**Author:** ![DMark](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMark](https://boards.straightdope.com/u/DMark)\
**Post date:** [September 13, 2005, 8:26pm UTC](https://boards.straightdope.com/t/simple-ms-access-question/321449/7 "2005-09-13T20:26:55Z")

</div>

Thanks! And right simple as well.

This is always my problem…I can do intricate design and great reports, but will agonize for days/weeks over something that is stupidly simple.

Thanks again!
