Calling Coding Gods!!! FIGURED OUT
This is what I am dealing with:
http://msconline.maconstate.edu/MSCO...SU/Sum04A2.gif
This is what I can't figure out:
Salespersons.Text = +1 on click
Total Sales = SalesAmount1 + SalesAmount2 + SalesAmount3
Average Sales = Total Sales/Salespersons , but the first time I click Gross Pay a "0" displays
Please help me VB Gods!
Re: Calling Coding Gods!!!
Quote:
Originally posted by twisted
This is what I am dealing with:
http://msconline.maconstate.edu/MSCO...SU/Sum04A2.gif
This is what I can't figure out:
Salespersons.Text = +1 on click
Total Sales = SalesAmount1 + SalesAmount2 + SalesAmount3
Average Sales = Total Sales/Salespersons , but the first time I click Gross Pay a "0" displays
Please help me VB Gods!
VB GODS are having breakfast, will cinderella do?
Salespersons.Text is a string. Either
SP=val(salespersons.Text)
SP =+1
Salespersons.Text=str(SP)
or
Salespersons.Text=str(val(salespersons.text)+1)
In the case of
"Average Sales = Total Sales/Salespersons , but the first time I click "
What is "salespersons", a numerical variable? If so, from where does it get it's value?
Wasn't this covered in your other thread?:confused: