Invoice Form Setup Help

G

Guest

Hello,

I have a invoice form with a invoice details form as the subform. Currently
I have a standard setup for the invoicing form with all the main information.
But what i'm trying to do is be able to make an item non-taxable or taxable.
I created a taxable yes/no field on each product. At the current moment I
have it preforming the following code after the quantity in the subform is
updated.

If Me.Taxable = True Then
Me.Tax_Total = [Price] * Forms![Invoices]![Tax Amount]
Else
Me.Tax_Total = 0
End If

This seems to be working ok to calculate the tax but the program is it seems
like it does the entire form not just that record when I have it
sum([tax_total]).

My current setup for the subform is as follows:

Name: Invoice Details Subform

InvoiceDetailID
InvoiceID
ProductID
Quantity
Description
PricePerUnit
LinePrice
Taxable (yes/no checkbox, imported from products table)
LineTax

On the bottom of that form I have 2 unbound textboxes that have the
=sum([LineTax]) and =sum([LinePrice]). The LinePrice seems to be working 100%
but not the tax parts. The reasons for me doing this is do to providing
customers both a service and a product.

Thanks in advanced,
Matt
(e-mail address removed)
 
S

Steve

Don't know if I'll be much help but... I have done something similar for a
customer of mine. I didn't use code though. I had the LineTax field
Control property read like..
=iif(Me.Taxable=-1,[LinePrice]*[Forms]![Invoices]![Tax Amount],0)

Then my sum([LineTax]) at the bottom worked fine.

Steve
Wannabe Access Guru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Tax Box Problems 3
#Error on form 2
Cash register 11
Set Focus 2
Access Form - Invoice 1
problem with invoice form 1
Database Help 7
Form with a Lookup Table 1

Top