Results 1 to 8 of 8

Thread: How to make MS Access process speed faster...??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    How to make MS Access process speed faster...??

    How to make MS Access process speed faster...??

    I have a databse table that contain alot of record, when I click view all it take very long time to load it....? Can it solve?

  2. #2

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

    Re: How to make MS Access process speed faster...??

    How many records are in your database table?

    How many are you bringing back with each "view"?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to make MS Access process speed faster...??

    This sounds like you are doing it in Access by opening a table directly with the user interface. If so then you can not speed up the populating of the tables view in any way.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: How to make MS Access process speed faster...??

    If you use SQL and indexes you can speed up the processing quite nicely. Of course selective viewing...

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    Re: How to make MS Access process speed faster...??

    I have a command button for use to search therir record, when they click the comnad commnad button the record will populate to ListView...

    My database record have more than 50000 record...... when user search all record it take long time to populate to the listview....

    my sql like below...

    Code:
    StrCache = "SELECT DISTINCT CustName,newNbr,Oldnbr,Location,Trans,FileView,Agent,Group From Main"
    
    RsCache.Open StrCache, aConn
    
    If RsCache.BOF = False Then
    RsCache.MoveFirst
    While Not RsCache.EOF
    With ListView1.ListItems.Add(, , RsCache.Fields(0))
    .ListSubItems.Add , , RsCache.Fields(1)
    .ListSubItems.Add , , RsCache.Fields(2)
    .ListSubItems.Add , , RsCache.Fields(3)
    .ListSubItems.Add , , RsCache.Fields(4)
    .ListSubItems.Add , , IIf(CBool(RsCache.Fields(5), "Yes", "No")
    .ListSubItems.Add , , RsCache.Fields(6)
    .ListSubItems.Add , , RsCache.Fields(7)
    End With
    RsCache.MoveNext
    Wend
    End If

  7. #7
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: How to make MS Access process speed faster...??

    1) The user won't be able to view all 50,000 records at any given time, he'll have to scroll/navigate

    2) He'll only need all fields for the record/s he's interested in.

    3) When creating a search algorithm, search the database not the listview and use primary keys.

    Consider changing data presentation http://www.vbforums.com/showthread.p...ghlight=sample

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to make MS Access process speed faster...??

    Also to spped up loading time into the listview you can either use LockWindowUpdate API or hide the listview and reshow it after its populated. Use either of the two but not both as they wont help one another.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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