Doing maths in forms using VBA

baz7621

Registered User.
Local time
Today, 11:41
Joined
Mar 26, 2004
Messages
10
Hiya all

I have a form see image below:

form.gif


What i want to do is set up a If statement (maybe) to ensure that when the type of transaction is "sale" it will take the quantity of the transaction in the subform and subtract it from the total of the equipment in the main form. For example if i had 10 mini torches and then i made a transaction of type "sale" of a quantity of 4 mini torches. The total quantity in the main form would update to 6.

Could anyone give me some advice on how to do this

Fanx in advance
 

Users who are viewing this thread

Back
Top Bottom