G
Guest
i have a 3 simple tables, one which stores transaction information, the other
2 are simply for the type of transaction and the categories that each
transaction is. the main table called "trasactions" is the basis for a form
called "transactions".
in the form there is a spot to type the subtotal of a reciept or invoice,
then the user is required to type in the GST and PST as well. a calculated
text box control is at the bottom of the form and it simply adds up the other
3 boxes.
the problem is that this calculated box isnt updating as the user types in
the other three. is there a way to cause the thing to recalculate everytime
the user updates one of the other three fields? i have tried setting the
event handlers that i thought might do what it want on the form and the
fields and had them call upon a macro to cause it to requery. nothing seemed
to do the trick. at this point i am pretty sure i have to create some special
coding, but i have no idea where to start.
so if anyone can make it really plain where to put it, and what to put in it
would be appreciated. i have no attempted coding to share as i am really new
to programming.
just so you know the fields are: [Subtotal] [GST] [PST] and the calculated
field is called total and contains =[Subtotal] + [GST] + [PST].
2 are simply for the type of transaction and the categories that each
transaction is. the main table called "trasactions" is the basis for a form
called "transactions".
in the form there is a spot to type the subtotal of a reciept or invoice,
then the user is required to type in the GST and PST as well. a calculated
text box control is at the bottom of the form and it simply adds up the other
3 boxes.
the problem is that this calculated box isnt updating as the user types in
the other three. is there a way to cause the thing to recalculate everytime
the user updates one of the other three fields? i have tried setting the
event handlers that i thought might do what it want on the form and the
fields and had them call upon a macro to cause it to requery. nothing seemed
to do the trick. at this point i am pretty sure i have to create some special
coding, but i have no idea where to start.
so if anyone can make it really plain where to put it, and what to put in it
would be appreciated. i have no attempted coding to share as i am really new
to programming.
just so you know the fields are: [Subtotal] [GST] [PST] and the calculated
field is called total and contains =[Subtotal] + [GST] + [PST].