I am a newbie, I have a project that askes for the name of the most pieces
produced by an employee to be displayed when you click the calculate button.
Ok here is is , I have the following text boxes and labels, txtName, and
txtQuanity, and a label lblEarnedMost. A name is entered into the txtName
and a quanity of Pieces Completed are entered into txtQuanity. Total earned
is figured by Quanity * a constant Rate. There is a summary, for this
project and they are asking for the Employee who earns the most. After you
calculate the first employee you clear the two text boxes, then enter a new
employee's name and quantity. I am having a problem of finding out which
employees name will go into the lblEarnedMost.t ext. I created two variables,
decMostEarned and decMostPieces. So I have a if statement that starts with
the Variable for Quantity called decPiecesComple ted. So here is what I have
so far.
If decPieceseCompl eted > decMostPieces then
? = ?
esleif ? ?
lblEarnedMost.t ext = txtName.text
End If
Any help. thanks
produced by an employee to be displayed when you click the calculate button.
Ok here is is , I have the following text boxes and labels, txtName, and
txtQuanity, and a label lblEarnedMost. A name is entered into the txtName
and a quanity of Pieces Completed are entered into txtQuanity. Total earned
is figured by Quanity * a constant Rate. There is a summary, for this
project and they are asking for the Employee who earns the most. After you
calculate the first employee you clear the two text boxes, then enter a new
employee's name and quantity. I am having a problem of finding out which
employees name will go into the lblEarnedMost.t ext. I created two variables,
decMostEarned and decMostPieces. So I have a if statement that starts with
the Variable for Quantity called decPiecesComple ted. So here is what I have
so far.
If decPieceseCompl eted > decMostPieces then
? = ?
esleif ? ?
lblEarnedMost.t ext = txtName.text
End If
Any help. thanks
Comment