|
-
Aug 8th, 2007, 11:38 AM
#1
Thread Starter
Hyperactive Member
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?
-
Aug 8th, 2007, 12:05 PM
#2
Re: How to make MS Access process speed faster...??
I assume "view" is a command button. Can you show us its code?
-
Aug 8th, 2007, 12:31 PM
#3
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"?
-
Aug 8th, 2007, 02:22 PM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Aug 8th, 2007, 03:20 PM
#5
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...
-
Aug 8th, 2007, 07:08 PM
#6
Thread Starter
Hyperactive Member
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
-
Aug 8th, 2007, 07:29 PM
#7
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
-
Aug 10th, 2007, 05:52 AM
#8
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|