MichaelF81
Programmer
I have some VBA code that does some checks for me and fill in a text box.
I now need to take the value from
and divide it by
and get the sum of the whol thing placed into
lblCalc is a text field, we didn't change the name, but we changed what it is.
Ideas?
"Adults are just obsolete children and the hell with them." - Dr. Seuss
Code:
If Not IsNull(Me.Text71a) Then
Dim v1, v2 As Integer
v1 = Me.Text71
v2 = Me.Text71a
If v1 < v2 Then
Me.lblCalc.Value = CInt(Round(v1, 0))
Else
Me.lblCalc.Value = CInt(Round(v2, 0))
End If
Else
Me.lblCalc.Value = ""
End If
I now need to take the value from
Code:
Me.SquareFeet
Code:
Me.lblCalc
Code:
Me.Text106
lblCalc is a text field, we didn't change the name, but we changed what it is.
Code:
Dim vS As Integer
Dim vT As String
vT = CInt(Me.lblCalc)
vS = Me.SquareFeet
Me.lblText106 = Sum(vS / vT)
Ideas?
"Adults are just obsolete children and the hell with them." - Dr. Seuss