Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting the results from a listbox

Status
Not open for further replies.

shaz123

Technical User
Oct 13, 2006
60
DE
Is it possible to count the amount of records in a listbox on a form.?
 
The ListCount property returns the total number of data rows, or the total number + 1, if Column Headers is set to Yes.
 
Hi thanxs fot that, i have set the column header to yes. The listbox is based on the number selected within a combobox, once this is selected there can be a number of orders within the Listbox, I wanted to show the number of orders in the listbox within a txt box on the form
 
You can set the textbox to reference the property:

No header row:
=[List0].ListCount

Header row:
=[List0].ListCount-1
 
Were would i put that coding, within the properties of the textbox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top