If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > VB MSAcess Query Needs to run quicker

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-03, 08:23
Rudeaction Rudeaction is offline
Registered User
 
Join Date: Dec 2002
Location: The Hague
Posts: 1
VB MSAcess Query Needs to run quicker

Hello,

I have written a VB application that uses an MS Access
2002 database. The main table, PostCode, contains 427, 000
records. The primary key for this table is a text field
that contains the actual postcode. Normally, I would make
all primary keys an autoincrement data type, but my
predecessor created the database. I'll change this
depending on your feedback.

There are 2 other tables in my database, Typen, with 44
records, and Groepen with 13 records. Typen has a Primary
Key, Type_Id, a text field, and Groepen has a Primary Key,
Groep_Id, which is also a text field.

The query below, which takes 15 seconds to execute, is ran
at the start of the application:

QryPcdeList = "SELECT Pcde.Postcode, Pcde.GridOost,
Pcde.GridNoord, Pcde.Type, Type.Type_naam, Grp.Groep_id,
Grp.Groep_naam, Pcde.[Index] AS Idx, Pcde.Huish " _
& "FROM PostCode AS Pcde, Typen AS Type, Groepen AS
Grp " _
& "WHERE Pcde.Type = Type.Type_Id " _
& "AND Type.Groep_Id = Grp.Groep_Id;"

Can anyone make any recommendations as to how I can reduce
the time taken to execute this query?

Thanks in advance.

Rudi
.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are On