Count function in ListBox (1 Viewer)

azhar2006

Registered User.
Local time
Today, 11:15
Joined
Feb 8, 2012
Messages
202
Hello all
I want to use the Count function to calculate the number of rows in ListBox. How do I write the function? I know how to use it in a continuous form, but I don't know how to use it in ListBox .
Thanks in advance
 

theDBguy

I’m here to help
Staff member
Local time
Today, 11:15
Joined
Oct 29, 2018
Messages
21,453
Thanks DBG for the quick reply. Frankly, I don't know how to use ListCount .
Should be as simple as:
Code:
Msgbox "There are " & Me.Listname.ListCount & " items in this Listbox."
 

azhar2006

Registered User.
Local time
Today, 11:15
Joined
Feb 8, 2012
Messages
202

Attachments

  • image_2021-11-29_205933.png
    image_2021-11-29_205933.png
    6.5 KB · Views: 210

Users who are viewing this thread

Top Bottom