Calculation Sales tax

G

Guest

I want the sales tax to calculate and show on my form. This is my formula,
but nothing appears on the form, not even an error message.

Any help would be appreciated.

Thanks,

=IIf([Customers_Taxable]=True,[Subtotal]*[Sales Tax Rate])
 
J

Jeff Boyce

Taylor

Where are you putting this formula?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
A

Arvin Meyer [MVP]

Did you try putting it in the AfterUpdate event of the Customers_Taxable
checkbox?
 
G

Guest

Try this ---
=IIf([Customers_Taxable]=True,([Subtotal]*[Sales Tax
Rate])+[Subtotal],[Subtotal])

This is assuming that [Customers_Taxable] field is a boolean (Yes/No) field
and not a text field. If it is a text field that enclose True in quotes or
what ever is stored in the field to signify that it is taxable.
 
G

Guest

I tried this formula and it returned the subtotal value only, even though I
have the customer taxable as yes. On the form the tax rate is showing as
7.5%. Do I have something wrong on the sales tax rate?

Thanks,
--
Taylor


KARL DEWEY said:
Try this ---
=IIf([Customers_Taxable]=True,([Subtotal]*[Sales Tax
Rate])+[Subtotal],[Subtotal])

This is assuming that [Customers_Taxable] field is a boolean (Yes/No) field
and not a text field. If it is a text field that enclose True in quotes or
what ever is stored in the field to signify that it is taxable.
--
KARL DEWEY
Build a little - Test a little


TaylorLeigh said:
I want the sales tax to calculate and show on my form. This is my formula,
but nothing appears on the form, not even an error message.

Any help would be appreciated.

Thanks,

=IIf([Customers_Taxable]=True,[Subtotal]*[Sales Tax Rate])
 
G

Guest

Is your [sales tax rate] text or number. If it contains "7.5%" it is text.
It would need to be .075 to be 7.5%.

You know you can not multiply text times a number.
--
KARL DEWEY
Build a little - Test a little


TaylorLeigh said:
I tried this formula and it returned the subtotal value only, even though I
have the customer taxable as yes. On the form the tax rate is showing as
7.5%. Do I have something wrong on the sales tax rate?

Thanks,
--
Taylor


KARL DEWEY said:
Try this ---
=IIf([Customers_Taxable]=True,([Subtotal]*[Sales Tax
Rate])+[Subtotal],[Subtotal])

This is assuming that [Customers_Taxable] field is a boolean (Yes/No) field
and not a text field. If it is a text field that enclose True in quotes or
what ever is stored in the field to signify that it is taxable.
--
KARL DEWEY
Build a little - Test a little


TaylorLeigh said:
I want the sales tax to calculate and show on my form. This is my formula,
but nothing appears on the form, not even an error message.

Any help would be appreciated.

Thanks,

=IIf([Customers_Taxable]=True,[Subtotal]*[Sales Tax Rate])
 
A

Arvin Meyer [MVP]

Percent is a format which can be applied to any numeric datatype (even an
autonumber)
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

KARL DEWEY said:
Is your [sales tax rate] text or number. If it contains "7.5%" it is
text.
It would need to be .075 to be 7.5%.

You know you can not multiply text times a number.
--
KARL DEWEY
Build a little - Test a little


TaylorLeigh said:
I tried this formula and it returned the subtotal value only, even though
I
have the customer taxable as yes. On the form the tax rate is showing as
7.5%. Do I have something wrong on the sales tax rate?

Thanks,
--
Taylor


KARL DEWEY said:
Try this ---
=IIf([Customers_Taxable]=True,([Subtotal]*[Sales Tax
Rate])+[Subtotal],[Subtotal])

This is assuming that [Customers_Taxable] field is a boolean (Yes/No)
field
and not a text field. If it is a text field that enclose True in
quotes or
what ever is stored in the field to signify that it is taxable.
--
KARL DEWEY
Build a little - Test a little


:

I want the sales tax to calculate and show on my form. This is my
formula,
but nothing appears on the form, not even an error message.

Any help would be appreciated.

Thanks,

=IIf([Customers_Taxable]=True,[Subtotal]*[Sales Tax Rate])
 

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

Top