would store the rate? Can I use the already existing expression I am using
to calculate the rate for the form? What would it look like. Can I start
here?
=IIf([Tax Exempt], 0, (IIF([StayStart]<#6/1/2003#, [Sales_Tax_Rate] = 0.07,
[Sales_Tax_Rate] = 0.0725))
Best regards,
Scott B
Try changing the Name property of the control.
If it's bound to an expression, but has the same name as a field, Access
gets confused.
If that doesn't solve the problem, you have a references problem. Details:
http://users.bigpond.net.au/abrowne1/ser-38.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to the newsgroup. (Email address has spurious "_SpamTrap")
Allen,
I get the following error when I changed the expression:
#Name?
Any thoughts?
Best regards,
Scott
Use hash as the delimiter for the dates:
=IIf([StayStart]<#6/1/2003#, 0.07, 0.0725)
You probably don't want the quote marks around the numbers either:
that
forces Access to think they are text.
Consider adding a field to store the tax rate with the transaction.
That
not
only copes with future changes in tax rates also, but also allow you
to
handle tax-exempt transactions (0.00%).
It's quite easy to throw in 0.0725 for all existing transactions with
an
update query (Update on Query menu in query design).
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to the newsgroup. (Email address has spurious "_SpamTrap")
Good afternoon,
I am trying to makethe following expression work:
=IIf([StayStart]<"6/1/2003",".07",".0725")
This is a formula to calculae sales tax. If the date is prior to
June
1,
2003 then use 7% otherwise use 7.25%. The formula is