Update recordcount in a label on form

  • Thread starter Thread starter Job via AccessMonster.com
  • Start date Start date
J

Job via AccessMonster.com

My form contains a list box and buttons to include and to exclude registers.
I have also a label to show the total of registers up to date always that a
register will be added or excluded.
Somebody can help me?
I am thankful since already.
 
Job via AccessMonster.com said:
My form contains a list box and buttons to include and to exclude registers.
I have also a label to show the total of registers up to date always that a
register will be added or excluded.
Somebody can help me?
I am thankful since already.

To get the count of the number of items in a list box you would use the
ListCount property, like:

Me.lstBoxName.ListCount

or

Forms!FormName!lstBoxName.ListCount

use that line of code in an event which is requeried with every record added
to the list box.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
Arvin,

Thank for your help!

Me it was of great value!

Jorge Barreto
 
Back
Top