
Trying to Add 2 Label totals (Sum)
The caption property of a label is a string. If you try:
Result = Label2.Caption + Label2.Caption
you will CONCATENATE two strings, not add two
values. Try this:
Dim LabelValue As Integer
LabelValue = Val(Label1.Caption) +Val(Label2.Caption)
There are other VB functions to convert data types:
CInt, Int, etc. See the VB Help.
---------------
Quote:
> Help trying to add to label fields
> Label2 = 2
> Label2 = 2
> Answer i get 22
> How do i get 4 ?????