Results 1 to 30 of 30

Thread: [RESOLVED] Loading 5000 records into a listbox

Hybrid View

  1. #1
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Loading 5000 records into a listbox

    Are you really sure you want to load all those 5000 records in the listbox at once?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    Birmingham, England.
    Posts
    115

    Re: Loading 5000 records into a listbox

    Hi,

    Not all the time, but if I want to see all the customers it will display 5000. Also, whether I display the ones in credit or debit, it takes the same amount of time.

    Thanks.

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Loading 5000 records into a listbox

    30 seconds for 5000 records is really slow, would you care to post the code you are using? And what database are you using?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Loading 5000 records into a listbox

    My suggestion, as I am sure Dee-u was leading towards, is to never load 5000 records into any control.

    That is simply too many.

    No user is ever going to scroll through 5000 of anything.

    It would be an easier experience to have an A to Z list - some kind of drill down - tree view maybe - whatever you can imagine.

    We personally "halt" filling any and all textboxes at 251 entries and flash a message that the user is being too vague. Entering SMITH for a lookup name in a database with 20000 rows and getting 300 SMITH's in a drop-down list is not a appropriate.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    Birmingham, England.
    Posts
    115

    Re: Loading 5000 records into a listbox

    Ok, i try and trim down the 5000.

    database is VDM access 2.0 but having problems converting to ADO at the moment

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Loading 5000 records into a listbox

    Quote Originally Posted by Rudie
    Ok, i try and trim down the 5000.

    database is VDM access 2.0 but having problems converting to ADO at the moment
    What kind(s) of problems?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    Birmingham, England.
    Posts
    115

    Re: Loading 5000 records into a listbox

    I have always used ms access/vdm on small data like less than 100 records. but nw i been told to use ADO, but do i have to modify the database? or is it just a code change when to database is openned and accessed or written to? Beacon sent me a doc on how to use ADO but i keep getting the message:

    Runtime Error '-2147467259 (80004005)':
    Couldn't find installable ISAM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width