C
Carlo
Hi
I need to average the two highest numerics entered in separate text
boxes using an if statement.
So far I have got
if txtFirst.Text >= txtSecond.text and txtFirst.Text >= txtThird.text
then
FirstHigh = txtFirst.text
elseif
txtSecond.Text >= txtFirst.text and txtSecond.Text >= txtThird.text
then
FirstHigh = txtSecond.text
elseif
txtThird.Text >= txtFirst.text and txtThird.Text >= txtSecond.text
then
FirstHigh = txtThird.text
This gives me which is the Highest. My problem is to get the second
highest value.
Please help
Carlob1
I need to average the two highest numerics entered in separate text
boxes using an if statement.
So far I have got
if txtFirst.Text >= txtSecond.text and txtFirst.Text >= txtThird.text
then
FirstHigh = txtFirst.text
elseif
txtSecond.Text >= txtFirst.text and txtSecond.Text >= txtThird.text
then
FirstHigh = txtSecond.text
elseif
txtThird.Text >= txtFirst.text and txtThird.Text >= txtSecond.text
then
FirstHigh = txtThird.text
This gives me which is the Highest. My problem is to get the second
highest value.
Please help
Carlob1