Sven,
You don't need to store the VAT since it is a calculated piece of data. So in
the textbox where you want to display the VAT, put this expression in the
control source property:
= [price]/1.24
You store only Price in your table and when you want to display VAT in a form or
report, you calculate it.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"Sven Seljom" <sven@seljom.no> wrote in message
news:fubpb.3671$mf2.47488@news4.e.nsc.no...[color=blue]
> I want to take the value from one form-field, deduct the VAT and return the
> value in another form-field. I have made a Public Function for this and
> attached it to the text-box. Can anybody help me with the correct syntax?
>
> Here's what I got so far:
>
> Public Function specify_VAT()
> Dim vat
> vat = "[price]/1.24"
> End Function
>
> I suppose what I want to know is how to put the result of this into the
> form-field in question. Any thoughts appreciated.
>
> Sven
>
>
>[/color]