Hi.
Was wondering if there is a way that I can count the entries in a given listbox?
I have a listbox (lstComponents) that shows records dependant upon a combobox:
The results are displayed on a form, and show 3 columns (the lastone hidden)
Column 1 in lstComponents is labelled SMS ID
Column 2 in lstComponents is labelled Package
Column 3 in lstComponents is labelled Tot (not sure if needed, as this column just has the number 1 listed)
I want to be able to display the total number of rows that appear in my listbox in a text box (txtTotals)
I don't seem to be able to reference the hidden column to do something like =Sum(me.lstComponents.Tot)
Can anyone help with this please?
Thanks in adv..
Was wondering if there is a way that I can count the entries in a given listbox?
I have a listbox (lstComponents) that shows records dependant upon a combobox:
Code:
select * from tblMyTable
group by tblMyTable.MyField1, tblMyTable.MyField2
Having (tblMyTalbe.MyField)=[Forms]![frmMyForm]![cboMyCombo]))
The results are displayed on a form, and show 3 columns (the lastone hidden)
Column 1 in lstComponents is labelled SMS ID
Column 2 in lstComponents is labelled Package
Column 3 in lstComponents is labelled Tot (not sure if needed, as this column just has the number 1 listed)
I want to be able to display the total number of rows that appear in my listbox in a text box (txtTotals)
I don't seem to be able to reference the hidden column to do something like =Sum(me.lstComponents.Tot)
Can anyone help with this please?
Thanks in adv..