Slow form with dlookups

hudaz

Registered User.
Local time
Today, 06:04
Joined
Jan 22, 2013
Messages
28
Hi everyone,

I have a form that displays certain data input throughout the day so management can see how the machine is performing, however they requested to see some information that has resulted in another 24 text boxes being added to the form all with dlookup's in the control source.

As you can imagine this has slowed the system down to a crawl and as it refreshes every 10 seconds its now painful to use, Could anyone give me some advice onto how to speed this up ?, i've tried converting it to code but it is just as slugish!


Thanks!

Andy
 
You shouldn't be using dlookups.
Use a query.
 
Perhaps you could show us a few screen shots (jpgs) and some of the code you're using to fill the text boxes.
The link provided by CJ has some great points/examples.

Keeping 24 text boxes updated every 10 seconds seems like a lot of activity.
What is the difference to management if updates were every 2-5 minutes vs. 10 seconds?
 
You should be aware that each DLookup synthesizes an ad-hoc query, so if you have 24 DLookup calls, you have 24 ad-hoc queries - NONE of which can be optimized or pre-analyzed.

By any chance, when you do these lookups, are the criteria fields the same for each case? Or at least, do large numbers of them share the same criteria and source table? Because if they do, you might get better response as suggested above by making a query to drive the lookups that have have table and criteria in common and BINDING a status form to that query so that the textboxes would automatically populate for you.
 
How would i get that information into a text field if i didn't use dlookups ?
Probably need to use the Query as the RecordSource for a Subform to display the 24 fields.

As a caveat, and as has been pointed out by jdraw, refreshing these fields every 10 seconds is a lot of processing and is probably going to remain relatively slow, whatever approach you take.

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom