i have a problem making the code for this logic
i have 5textbox ,1 label and a command button on a form and
need to do this:
if the value of the 1st textbox is greater than the 2nd,3rd,4th,5th
then label1.caption = to the value of the 1st text box
if the value of the 2nd textbox is greater than the 1st,3rd,4th,5th
then label1.caption = to the value of the 1st text box
and so on.. until the 5th
'''''''''''''''''''''''''''''''''''''''''''''''''''
i tried making code like
if txt1 > txt2 then
label1.caption = txt1
end if
if txt1 > txt3 then
label1.caption = txt1
end if
and so on...
but having a problem when it come to comparing the
"2nd to the 1st"
"3rd to the 1st"
and so on .....
it still have a problem on selecting the highest value on the 5 textboxes
pls help me............. getting dizzy thinking of the solution :confused: