D
Dave
I have a datasheet view subform on a tab control.
I am trying to show a warning lablel on the main form if the field
Currcosttotal on the subform = zero (not null)
I have the following code, but this only works when the first record in the
subform is zero, not if it a latter record.
Can any one please advise how I loop through all records on the subform?
Private Sub Form_Current()
If Forms!frmprojectstabbed!qrybomsubform!Currcosttotal = 0 Then
Me.test.Visible = True
Else
Me.test.Visible = False
End If
End Sub
Cheers
Dave
I am trying to show a warning lablel on the main form if the field
Currcosttotal on the subform = zero (not null)
I have the following code, but this only works when the first record in the
subform is zero, not if it a latter record.
Can any one please advise how I loop through all records on the subform?
Private Sub Form_Current()
If Forms!frmprojectstabbed!qrybomsubform!Currcosttotal = 0 Then
Me.test.Visible = True
Else
Me.test.Visible = False
End If
End Sub
Cheers
Dave