I have a label on a main form which I wish to display if a sub form field= zero
I am using this
Private Sub Form_Current()
If Forms!frmprojectstabbed![qrybomsubform].Form![Currcosttotal] = 0 Then
Me.warning.Visible = True
ElseIf Forms!frmprojectstabbed![qrybomsubform].Form![Currcosttotal] > 0 Then
Me.warning.Visible = False
End If
End Sub
When I view the fisrt record with zero cost the label displays, when I move to the next with zero value it is hiden.
What am I doing wrong???
Dave
I am using this
Private Sub Form_Current()
If Forms!frmprojectstabbed![qrybomsubform].Form![Currcosttotal] = 0 Then
Me.warning.Visible = True
ElseIf Forms!frmprojectstabbed![qrybomsubform].Form![Currcosttotal] > 0 Then
Me.warning.Visible = False
End If
End Sub
When I view the fisrt record with zero cost the label displays, when I move to the next with zero value it is hiden.
What am I doing wrong???
Dave