0

Alright, I dont know if this can be done or not, but can you say, take either a caption or the text in a text box and add or subtract from what's in it, with a click of a button? Allow me to explain, lets say I have a text box with "100" as the text in it. Can I, with a click of a button, make it subtract from that 100?

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by kb.net
0

Hi.
That is simple

Private Sub Form_Load()
    Me.Label1.Caption = 100
End Sub

Private Sub Command1_Click()
    If IsNumeric(Me.Label1.Caption) Then Me.Label1.Caption = Me.Label1.Caption - 20
End Sub

I hope that is what you were looking for.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.