darylclassen
IS-IT--Management
I have a form with a subform. Text0 and Text2 are on the main form. PercentageTotal is on the subform. I'm trying to make an if statement where it will do one thing if the total of all 3 fields is below 101, and another if it is not. Here is my code...Please help me!
Private Sub Command2_Click()
If Me![BreakdownPercentageTotal subform].Form.PercentageTotal + Me.Text0 + Me.Text2 < 101 Then GoTo GoAhead Else GoTo TooMuch
GoAhead:
Exit Sub
TooMuch:
hmm = MsgBox("Okay.", 0, "Whatever."
Exit Sub
End Sub
Private Sub Command2_Click()
If Me![BreakdownPercentageTotal subform].Form.PercentageTotal + Me.Text0 + Me.Text2 < 101 Then GoTo GoAhead Else GoTo TooMuch
GoAhead:
Exit Sub
TooMuch:
hmm = MsgBox("Okay.", 0, "Whatever."
Exit Sub
End Sub