List Box Record Count

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hello,

I am trying to calculate the number of records SELECTED in a list box on a
form and populate a text box on the same form with the results.

I have got this code that tells me the total number fo records but I just
want it for those selected. Does anyone know how to do this?

MsgBox ([ListBoxName].ListCount)

Many thanks in advance.

Martin
 
Thank you, much appreciated

Andrew Tapp said:
Martin

You could use Me!ListBoxName.ItemsSelected.Count

Hope this helps.

Martin said:
Hello,

I am trying to calculate the number of records SELECTED in a list box on a
form and populate a text box on the same form with the results.

I have got this code that tells me the total number fo records but I just
want it for those selected. Does anyone know how to do this?

MsgBox ([ListBoxName].ListCount)

Many thanks in advance.

Martin
 
Back
Top