View Full Version : Error in total on form


sbooth
03-16-2008, 10:39 AM
Okay, I know this is probably simple, but I am getting an error in putting a total on a form. I have the following:

Subform name is EntryDetail Subform
I have a field in the footer called TotalEntry that calculates the total entry. The formula is =sum([EntryAmt])

Form name is Entry
I have a textbox with the control =[Entry Subform].Form!TotalEntry

The text box shows #Name?

I am attaching a copy of the database.

Any ideas?

boblarson
03-16-2008, 11:27 AM
Change the formula in the Text box on the main form from

=[Entry Subform].Form!TotalEntry

to

=[EntryDetail Subform].Form!TotalEntry

boblarson
03-16-2008, 11:30 AM
Oh, and I would HIGHLY suggest you get rid of the lookups defined at table level. Use them at form level but avoid them at table level.

See here for more about that:
http://www.mvps.org/access/lookupfields.htm

sbooth
03-16-2008, 04:20 PM
Thanks. That worked. I looked at this probably a hundred times and didn't see that.