Reply from jorgearr on Apr 18 at 12:17 AM high=iif(txt3>txt2,txt3,txt2) high=iif(high>txt1,high,txt1)
| | | ---------------Original Message--------------- From: trpro Sent: Monday, April 09, 2012 9:28 PM Subject: How to Return a High Value from Three Different Textboxes? strHighGame = CStr(Val(lblHighGame.Text)) lblHighGame.Text = CStr(Val(txtScore1.Text)) If Val(txtScore2.Text) > Val(txtScore1.Text) Then strHighGame = CStr(Val(txtScore2.Text)) If Val(txtScore3.Text) > Val(txtScore2.Text) Then strHighGame = CStr(Val(txtScore3.Text)) This is my code so far, I'm not sure what else I can do? Maybe do a for next? which I'm not sure how to write? I need to pull the Highest value from txtScore1 - txtScore 3 Anyone got a good idea how to do this? | | Reply to this email to post your response. __.____._ | _.____.__ |
No comments:
Post a Comment