Hello,
I'm a novice Access user piecing together what I can find on the internet and in some reference books to create my own contact/accounting/invoicing database.
That being said, I've created a form with a subform for invoicing. Everything was a struggle once I started trying to do new and better things. However, as you can see in screenshot at the end of this post, two fields in the footer of the subform (Subtotal and Total) are not working as they should. The grayed-out field is simply a data copy field since I found out that you can't perform calculations on a calculated field.
Access Version
2013
Field Information
- Name: Subtotal
Formula: =Sum([LineTotalCopy])
The [LineTotalCopy] field is hidden in the screenshot, but it resides in the subform record as another data copy field like [SubtotalCopy].- Name: SubtotalCopy
Formula: =[Subtotal]
As stated before, this is just a data copy field used for calculations.- Name: TaxRate
Formula: =[Forms]![Invoice_Table]![TaxRate]
This field pulls the tax rate associated with the client because there are three tax rates in Pennsylvania depending on the location of the work.- Name: Total
Formula: =[Subtotal]*[TaxRate]
For fixing #Error, I've also tried using "=Sum(Nz([LineTotalCopy],0)" (obviously without the quotation marks), but that didn't work either. In doing a Google search, I've noticed a lot people having issues with the Sum function in subforms; unfortunately, the solutions given for those problems either 1) didn't work for me, or 2) weren't written in plain English that I could understand.
I'm mystified by the #Type! error because all of the fields involved in the Total calculation are set to Currency with 2 decimal places and TaxRate is set to Percentage with two decimal places. I don't understand why #Type! would even be an issue/factor.
Thank you, in advance, for any help or time you can give me on this problem. PLEASE, do not point me to the Northwind Database without telling me exactly what to look for. I've tried looking in that file a few times previously, and nothing came of it but confusion and perplexity as I got lost amid all the tables, queries, forms, and so on. I don't even know what I'm looking for--or even where to start looking.
All help/suggestions are greatly appreciated!
Colby
![]()