Calculation

nigel brown

Registered User.
Local time
Today, 05:51
Joined
Dec 7, 2010
Messages
43
I have got it sorted now.

Many thanks for those that replied

Nigel


Hi all

I have a form that displays a value calculated in a query and displayed on the form.

I have put two unbound text boxes on the form, in these boxes I need to calculate 15% and 30% on the value displayed from the query.

Any thoughts please

Regards

Nigel
 
Last edited:
Send a short example of your mdb, (access 2000 or 2002-2003).
 
Just as you would use a calculator to calculate percentages, the same rules (i.e. BODMAS - correct bracketting especially) apply in VBA.
Code:
15% of [SomeValue] = ([SomeValue] * 15) / 100
You can then set the Format property of the textbox to Percent.
 

Users who are viewing this thread

Back
Top Bottom