Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

List Count

I set the RowSourc property of a list box to a query, and I would like to show the # of items in the list box.  When I run the query, at the bottom of the screen it show, for example, 110 as the results of the query.  How do I display that number when that query is the rowsource of the list box?
  • 2
1 Solution
you can use the listcount property of the listbox

say u had a label near the listbox called lblCount

lblCount.caption = mylistbox.listcount

can be applied to textboxs also, eg txtMyCount.value = mylistbox.listcount
willis1970Author Commented:
I should have a least tried that.  I have used the ListCount property many times before - just didn't realize it would work in this manner.  Thanks for your help..
No probs :)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now