Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2007, 12:11 PM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Slow-loading form(s)

Hi all.
I'm having loading speed problems with form that I've created, containing a subform linked to a stored query. The form is called by another form, and both are using the same recordset/query.
The first form allows the user to search through the table and will return a recordset based on the search criteria. Once the user has found the required record, they will open the second form (which takes the record's primary key as an OpenArg), and will perform a Findfast (using the OpenArg) to get to the required record. The recordset from the first form is cloned for use in the second.
The recordset used contains about 70 fields and the table that it references contains upwards of 40000 records (increasing by ~400 per day).
I have a feeling that if I pass the recordset calculated by on loading the first form to the second form will help with the speed of loading the second form, but have no idea how to pass recordsets between forms.
I've tried indexing the used fields and compacting the backend, but this seems to make very little difference to the load-times of the forms.
Can anyone please help?

Thanks.

Dave
 
Old January 11th, 2007, 01:16 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Egads, why pass the entire recordset to the second form? Open the second form with only the single record the user needs.

SELECT * FROM tblMyTable WHERE [PKField] = " & Me.PKField

HTH

Also, you may want to limit the recordset to the top 100 records, and then only call additional records as needed.

Also, what is the backend? It should be SQL.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page is Loading too Slow kornshell Classic ASP Basics 7 October 16th, 2008 09:28 AM
Slow page Loading yadavrahul2k5 ASP.NET 2.0 Professional 5 August 13th, 2007 07:12 AM
.net page loading is slow angshujit .NET Framework 1.x 1 December 26th, 2006 07:53 AM
Loading too slow chiholi Crystal Reports 0 November 16th, 2004 02:52 AM
Slow loading ASP or SSIs hcweb Classic ASP Basics 7 October 8th, 2004 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.