J
jc
I have a subform on a main form. The subform shows all
related parts to a drawing on the main form. I have a
control on the subform that sums all those parts on the
subform. I reference that control from the main form and
want a label to be visible if the quantity is 0 and not
visible if it is greater than 0. This is the code in
the "On Current" event for the main form.
Private Sub Form_Current()
If Me!sfrmXLList.Form!SumQTO > 0 Then
Me.lblRFI.Visible = False
Else
Me.lblRFI.Visible = True
End If
End Sub
If I "step" through the code, the label changes visibility
as I expect. If I "run" the code, the label is always
visible.
Can someone tell me what is going on?
Thanks
- jc -
related parts to a drawing on the main form. I have a
control on the subform that sums all those parts on the
subform. I reference that control from the main form and
want a label to be visible if the quantity is 0 and not
visible if it is greater than 0. This is the code in
the "On Current" event for the main form.
Private Sub Form_Current()
If Me!sfrmXLList.Form!SumQTO > 0 Then
Me.lblRFI.Visible = False
Else
Me.lblRFI.Visible = True
End If
End Sub
If I "step" through the code, the label changes visibility
as I expect. If I "run" the code, the label is always
visible.
Can someone tell me what is going on?
Thanks
- jc -