Speed of Code
From: Steve (sschmideler_at_perfect-product.com)
Date: 03/02/04
- Next message: jacob: "Audit Trail"
- Previous message: Rick Brandt: "Re: Calculating values in a form and storing them"
- Next in thread: John Vinson: "Re: Speed of Code"
- Reply: John Vinson: "Re: Speed of Code"
- Reply: Pavel Romashkin: "Re: Speed of Code"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 12:49:48 -0600
I have an acess database and Table1 has 1800 records. Table2 has 14,000
records. What I need to do is look up an item in Table1 view its
corresponding entries in Table2 and pull a couple of fields from Table2 into
Table1 where those ITEMS are equal and the date is of the latest date.
How I do this now is open table 1 as a recordset, open table 2 as a
recordset. Start with the first item in table1 and cycle through match items
in table2 using a DO LOOP and where the date is the latest date I grab my
fields. When I reach the end of Table2 I use a DO LOOP to start table 1 at
record 2 and start over.
This process take 15 minutes to run through. Is there another way I can do
this without such a time penalty?
- Next message: jacob: "Audit Trail"
- Previous message: Rick Brandt: "Re: Calculating values in a form and storing them"
- Next in thread: John Vinson: "Re: Speed of Code"
- Reply: John Vinson: "Re: Speed of Code"
- Reply: Pavel Romashkin: "Re: Speed of Code"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|