Hello everyone, I am new to access and am trying to create a database to help create invoices. The form and subforms are based on queries which are based on tables. The two subforms are to separate taxable products with non-taxable products. I have followed this link: http://www.ms-access2010.com/tutorials/forms2.html to create it, only using the two subforms instead of one.
The issue is, not every invoice has both non-taxable and taxable products. Most have one or the other, however the equations only work when I have both. I have tried multiple different options, but have yet to find the correct way to do it.
Here's what I have tried.
=[TaxDetailSubF].[Form]![SubTot]+[NonTaxableDetailF].[Form]![SubTot2] This code has given me a #Type! error in the invoices that do not have both.
=Nz([TaxDetailSubF].[Form]![SubTot],0)+Nz([NonTaxableDetailF].[Form]![SubTot2],0) This has given me a #Size! error
=Nnz([TaxDetailSubF].[Form]![SubTot],0)+Nnz([NonTaxableDetailF].[Form]![SubTot2],0) This has given me a #Name? error.
If you need anymore information on my database please let me know. I've been trying to figure out this problem for a few days now. Odds are, it's probably an easy fix, I'm just missing it.
Thank you for your help!