I have a tab control form with a subform (qrybomsubform)
I wish to show a warning message on the main form if the field Currcosttotal on the subform = zero (not Null - zero)
I have the following - this hides the label but doesn't show it when I move to a record with a zero value.
Currcosttotal is formatted currency to 4 decimal places and contains either a value or zero.
Can any one help??
Private Sub Form_Current()
If Forms!frmprojectstabbed!qrybomsubform.Form!Currcosttotal.Value = 0 Then
Me.test.Visible = True
Else
Me.test.Visible = False
End If
End Sub
I wish to show a warning message on the main form if the field Currcosttotal on the subform = zero (not Null - zero)
I have the following - this hides the label but doesn't show it when I move to a record with a zero value.
Currcosttotal is formatted currency to 4 decimal places and contains either a value or zero.
Can any one help??
Private Sub Form_Current()
If Forms!frmprojectstabbed!qrybomsubform.Form!Currcosttotal.Value = 0 Then
Me.test.Visible = True
Else
Me.test.Visible = False
End If
End Sub