Help with this problem:

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Busch

    Help with this problem:

    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
    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
    What I'm trying to do is keep the person who produced the most in
    lblEarnedMost. The way I have
    been doing it, it just places the last employees name regaurdless of the
    amount of pieces completed.
    Thank you in advance.


Working...