how to edit textbox values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • popoyen
    New Member
    • Mar 2010
    • 1

    how to edit textbox values

    hi im a newbie at vb, and i want to edit a textbox that have a defined value like a the coded value.below

    Code:
    Private Sub txtunits_GotFocus()
    txtunits.Text = Format((Val(cbotimeto.Text) - Val(cbotimefrom.Text)) * (Val(chkMon.Value) + Val(chktues.Value) + Val(chkFri.Value) + Val(chksun.Value) + Val(chksat.Value) + Val(chkWed.Value) + Val(chkthurs.Value)), "0.00")
    If txtunits.Text = "3.00" Then
    MsgBox "The " & (cbocourse.Text) & " units completed .", vbExclamation
    End If
    If txtunits.Text > "3.00" Then
    MsgBox "The " & (cbocourse.Text) & " has exceeded the required units .", vbExclamation
    End If
    If txtunits.Text < "3.00" Then
    MsgBox "The " & (cbocourse.Text) & " is less than the required units .", vbExclamation
    End If
    
    End Sub


    Pls help... thanks alot...
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    dear,

    I hope this will help you ( see attachment)

    br,
    Attached Files

    Comment

    Working...