Calculating the number of records in a listbox/combo box

  • Thread starter Thread starter CrazyAccessProgrammer
  • Start date Start date
C

CrazyAccessProgrammer

Is there a way to programmatically determine the total number of records in a
listbox/combox?
 
CrazyAccessProgrammer said:
Is there a way to programmatically determine the total number of records
in a
listbox/combox?

Debug.Print Me.LstCtrls.ListCount
 
Use the ListCount property of the control.

TheCount = Forms![FormName]![ComboboxName].ListCount

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 
Back
Top