Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Put formula in field source control

Status
Not open for further replies.

hdesbiens

Programmer
May 2, 2004
77
0
0
CA
Hi

i have a datasheet that contains the taxes field calculated with the price of a piece,so i put in the control source of the field tax :=([subtotal]*[tax])

but i want to calculate the taxt only if the field notax is false, so is there a way to put in the control source of my field tax that will calculate only if the field notax is false?

thanks
 
Perhaps this ?
=IIf([notax]=False,[subtotal]*[tax],0)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top