If anyone has read my previous thread they know the pain I am in... this problem could be the solution to all of my problems so any help on this is FULLY APPRECIATED:
My question is this:
Is it possible to write code for an unbound txtbox that could evaluate a previous field and preform 1 of 2 calculations based on what is entered in the previous field????
For Example:
I have a form that has 4 fields:
ProductID|Unit Price|Quantity|Line Total|
When a product is selected from the combo box the unit price is automatically updated in the unit price field. Then the user enters the quantity of the product and the line total field prefoms this simple calculation:
=[Unit Price]*[Quantity]
My problem is that I have a product "Gasoline", that the future users wish to enter in the sale amount, and NOT the quantity. As a result, this "Gasoline" field has to be seperate from this table, and results in mucho problems with Null values between the two calculations.
Is it possible to write a code for this "Line Total" box that says:
If Gas = True then, override the equation and direct enter the total sale manually in the field.
If Gas = False then, run the equation [unit price]*[Quantity]
Is this possible???, iff so does anyone know the code for this??? I would apreciate all replys to this. I am NOT good at programming so please make reply simple!!!
Thanks a Million,
Kevin
My question is this:
Is it possible to write code for an unbound txtbox that could evaluate a previous field and preform 1 of 2 calculations based on what is entered in the previous field????
For Example:
I have a form that has 4 fields:
ProductID|Unit Price|Quantity|Line Total|
When a product is selected from the combo box the unit price is automatically updated in the unit price field. Then the user enters the quantity of the product and the line total field prefoms this simple calculation:
=[Unit Price]*[Quantity]
My problem is that I have a product "Gasoline", that the future users wish to enter in the sale amount, and NOT the quantity. As a result, this "Gasoline" field has to be seperate from this table, and results in mucho problems with Null values between the two calculations.
Is it possible to write a code for this "Line Total" box that says:
If Gas = True then, override the equation and direct enter the total sale manually in the field.
If Gas = False then, run the equation [unit price]*[Quantity]
Is this possible???, iff so does anyone know the code for this??? I would apreciate all replys to this. I am NOT good at programming so please make reply simple!!!
Thanks a Million,
Kevin