list box validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I check if a list box has at least one item selected before the record
is saved?

Thanks,
Melanie
 
Try,

If Me.lstMyListBox.ItemsSelected.Count = 0 Then
' No selections made
Else
' Selection made
End If
 
Jeff,

Thanks so much. It worked!

Melanie

Jeff Conrad said:
Try,

If Me.lstMyListBox.ItemsSelected.Count = 0 Then
' No selections made
Else
' Selection made
End If
 
Back
Top