Well I've got this far: On my from
lbWarning is the ListBox. and lblWarning is my Label
If there is any data in lbWarning I want lblWarning to be Visible, the >0
was a guess!
Private Sub Form_Open(Cancel As Integer)
If Me.lbWarning > 0 Then
Me.lblWarning.Visible = True
Else
Me.lblWarning.Visible = False
End If
End Sub
When you say "any data in lbWarning " do you mean a value in the list
box has been selected?
Me!lblWarning.Visible = Not IsNull(Me![lbWarning])
Place the above code in the Form's Current event as well as in the
lbWarning AfterUpdate event. You do not need it in the Form's Open
event.