Briggsey
International Coach
This is a plea to all people with VB experience out there! This is the situation i find myself in. I have been given an assignment which requires me to create a golf application and as part of it i am required to create a user form where the user can input their scores on each hole. What I want to do on that form is add each of the scores from the 18 holes up and have the total be displayed in a text box. I thought I had coded it properly but all that is coming up in the text box are the numbers which have been inputted. Can someone tell me what is wrong with the code below?
Scoresheet.txtfinalscore is the text box where the total is supposed to appear
The individual txthole[].text are where the scores are being taken from
PHP:
Private Sub lblcalculate_Click()
'is supposed to calculate the total scores of each hole
Scoresheet.txtfinalscore.Text = txthole1.Text + txthole2.Text + txthole3.Text + txthole4.Text + txthole5.Text + txthole6.Text + txthole7.Text + txthole8.Text + txthole9.Text + txthole10.Text + txthole11.Text + txthole12.Text + txthole13.Text + txthole14.Text + txthole15.Text + txthole16.Text + txthole17.Text + txthole18.Text
End Sub
Scoresheet.txtfinalscore is the text box where the total is supposed to appear
The individual txthole[].text are where the scores are being taken from