Check boxes and calculations

V

Viv_500

I would like a checkbox to contain whether a company is situated abroa
or not, if the checkbox is ticked then the balance (currency data type
text box (on the same form, in the same table) shows the balance minu
VAT. Where would this code need to be and how would it look?

Thanks, Vi
 
M

Microsoft News Groups

Viv,

VAT is presumably a percentage of the cost. You could use a controlsource
such as =IIf(chkOverseas=True, Cost, Cost*(1+VatPercentage/100)).

If VAT and Cost are stored separately then you could use
=IIf(chkOverseas=True,Cost,Cost+VAT)

The IIf function has the form IIf(Condition, Value if True, Value if False)

Rod Scoullar
 

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


Top