Johnnycat1
Programmer
Ok this is what I am trying to do...
I have a simple form that has the folliwing cells.
[ProductQuantity]
[Cost]
[Margin%]
[Sell]
[ProductQuantity] & [Cost] are numbers entered by the user
The user also needs to enter either the [margin%] or the [sell]. If they enter the [Margin%] then the [Sell] needs to be a result of the following formula:
[ProductQuantity] x [Cost]/(1-[margin%])
If they enter the [Sell] then [Margin%] needs to be the result of the following formula:
([Sell]-([ProductQuantity] x [cost]))/[Sell]
The issue is that I need to be able to give the user the ability to pick either cell [Sell] or [Margin] to enter their data.
Is is possible to have the default value of [Sell] created by the [ProductQuantity] x [Cost]/(1-[margin%] formula but in the On Enter event of the [Sell] have the [Margin%] re-calculated from the ([Sell]-([ProductQuantity] x [cost]))/[Sell] formula?
I am open to any other methods also.
As always, I really appreciate the help that you are willing to give.
I have a simple form that has the folliwing cells.
[ProductQuantity]
[Cost]
[Margin%]
[Sell]
[ProductQuantity] & [Cost] are numbers entered by the user
The user also needs to enter either the [margin%] or the [sell]. If they enter the [Margin%] then the [Sell] needs to be a result of the following formula:
[ProductQuantity] x [Cost]/(1-[margin%])
If they enter the [Sell] then [Margin%] needs to be the result of the following formula:
([Sell]-([ProductQuantity] x [cost]))/[Sell]
The issue is that I need to be able to give the user the ability to pick either cell [Sell] or [Margin] to enter their data.
Is is possible to have the default value of [Sell] created by the [ProductQuantity] x [Cost]/(1-[margin%] formula but in the On Enter event of the [Sell] have the [Margin%] re-calculated from the ([Sell]-([ProductQuantity] x [cost]))/[Sell] formula?
I am open to any other methods also.
As always, I really appreciate the help that you are willing to give.