Private Sub Text28_AfterUpdate()
total
End Sub
Private Sub Text29_AfterUpdate()
total
End Sub
Private Sub Text30_AfterUpdate()
total
End Sub
Private Sub Text31_AfterUpdate()
total
End Sub
Private Sub Text32_AfterUpdate()
total
End Sub
Private Sub total()
totalacross Text12, Text19, Text26, Label46
totalacross Text13, Text20, Text27, Label47
totalacross Text14, Text21, Text28, Label48
totalacross Text15, Text22, Text29, Label49
totalacross Text16, Text23, Text30, Label50
totalacross Text17, Text24, Text31, Label51
totalacross Text18, Text25, Text32, Label52
totaldown Text12, Text13, Text14, Text15, Text16, Text17, Text18, Label56
totaldown Text19, Text20, Text21, Text22, Text23, Text24, Text25, Label57
totaldown Text26, Text27, Text28, Text29, Text30, Text31, Text32, Label58
sumsides
End Sub
Private Sub totalacross(textA As TextBox, textB As TextBox, textC As TextBox, labelA As label)
labelA.Caption = Val(textA.value) + Val(textB.value) - Val(textC.value)
End Sub
Private Sub totaldown(textA As TextBox, textB As TextBox, textC As TextBox, textD As TextBox, textE As TextBox, textF As TextBox, textG As TextBox, labelA As label)
labelA.Caption = Val(textA.value) + Val(textB.value) + Val(textC.value) + Val(textD.value) + Val(textE.value) + Val(textF.value) + Val(textG.value)
End Sub
Private Sub sumsides()
Dim x As Double
Dim y As Double
x = Val(Label46.Caption) + Val(Label47.Caption) + Val(Label48.Caption) + Val(Label49.Caption) + Val(Label50.Caption) + Val(Label51.Caption) + Val(Label52.Caption)
y = Val(Label56.Caption) + Val(Label57.Caption) - Val(Label58.Caption)
If (x <> y) Then
MsgBox "usermngmt_hourtracking: bug 1: bottom does not equal side. Please tell DB Admin", vbCritical
MsgBox "x = " & x
MsgBox "y = " & y & " " & Label56.Caption & "+" & Label57.Caption & "-" & Label58.Caption
End If
Label59.Caption = x
End Sub