473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with ListCount

Hi

I have this funny problem with the listcount property of a list control. If
there is no item in the list, Me.stafflist.ListCount returns 0 (zero). If
there are any items then Me.stafflist.ListCount returns the actual number of
items + 1. Why is that?

Thanks

Regards

Nov 13 '05 #1
2 1754
On Tue, 18 Oct 2005 04:04:07 +0100, "John" <Jo**@nospam.infovis.co.uk>
wrote:

Perhaps it includes the title? Set the ColumnHeads property to False
and try again.

-Tom.
Hi

I have this funny problem with the listcount property of a list control. If
there is no item in the list, Me.stafflist.ListCount returns 0 (zero). If
there are any items then Me.stafflist.ListCount returns the actual number of
items + 1. Why is that?

Thanks

Regards


Nov 13 '05 #2
The columnheads setting does affect the ListCount. I have also posted
previously in this NG on a bug with the ListCount property.

--
Darryl Kerkeslager
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Darryl Kerkeslager | last post by:
Access 2002 on Win98 at least, not tested elsewhere: Bug: The ListCount property of an unbound listbox may be incorrect if you use column heads. Model: Set up a simple database with two...
2
by: colleen | last post by:
I have a function that will search through a list box and select a variable. I can get the item in the list box to select, but I cannot get the list box to go to the selected item. So if the user...
3
by: BVH | last post by:
Hi, I'm currently having a problem with a vb6 project I once wrote that needs to be converted to vb.NET. The problem is as follows : On a form I have a listbox and two commandbuttons. The 2...
2
by: Lennart Nielsen | last post by:
I'm trying to use the FileListBox, but it does not seem to have the ListCount property or any substitute. Any bids on this or another way (short of the old DOS routine) to get a countable listing...
1
by: andrew.panin | last post by:
Hi there! I've got a trouble with these things. What's going on? 1ST STEP: we have ListBox item. Let's call it ListBox1. We're adding four values to it using AddItem method:...
2
by: Bruce | last post by:
This is baffling to me. I'm using Access 2002. If I create an unbound form and put an unbound listbox on it (List0) and then add the following code to the Form_Load event: Private Sub...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
4
JAMBAI
by: JAMBAI | last post by:
I have 200,000 records in database which needs to be listed in the combobox list but, when Check for combobox.ListCount it gives only the top 65,000 Is there a maximum of item in VBA ComboBox? ...
10
by: ashootoshverma | last post by:
Hi Everyone, I am new in perl programming can anyone help me to give a right way to do in this program "Zip all .* file from a one windows directory to another directory." Here is my code. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.