Jump to content

This topic is 8381 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have 8 fields "Percent1" --> "Percent8"

I want to know if it is possible to do the following.

Users may put 10% in "Percent1". I then want "Percent2" to show 90% (100% - 10%) But(!) I then want to allow users to be able to input in "Percent2". If they input 30% in field 2 I want "percent 3" to show 60% (100%-10%-30%)

Is there any way to do this? I can validate it so that the total of the fields cannot exceed 100%, but from an aesthetic point of view would like the next field to auto-enter.

Does that make sense??!!

Posted

Tom,

Email me your private email. Can send you a file.

For list purposes here is an example.

you can have a calculation field for each value that looks to see if the editable field (percentx.disp)field has anything in it and that the total is not 100%. If this is true, display the remainding amount for the percentage

If(

IsEmpty(percent2.disp) and Total Percentage <> 1, 1 - percent1.disp,"")

this for the first field (percent 2)

then for each subsequent field build up the calculation

If(

IsEmpty(percent3.disp) and not IsEmpty(percent2.disp) and Total Percentage <> 1, 1 - (percent1.disp + percent2.disp),"")

Posted

Sounds like you don't want auto-enter to happen unless there is a "balance." Set up auto-enters like this:

Percent2:

Case(100 - Percent1 = 0, "", 100 - Percent1)

Percent3:

Case(100 - Percent1 - Percent2 = 0, "", 100 - Percent1 - Percent2)

Percent4:

Case(100 - Percent1 - Percent2 - Percent3 = 0, "", 100 - Percent1 - Percent2 - Percent3)

etc.

Not exactly elegant -- but no calculation fields required.

This topic is 8381 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.