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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top