Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 11th, 2007, 11:11 AM
Registered User
 
Join Date: Jan 2007
Location: London, , .
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
Reply With Quote
  #2 (permalink)  
Old January 11th, 2007, 12:16 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:53 AM
Loading too slow chiholi Crystal Reports 0 November 16th, 2004 01:52 AM
Slow loading ASP or SSIs hcweb Classic ASP Basics 7 October 8th, 2004 04:04 PM



All times are GMT -4. The time now is 11:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.