Results 1 to 7 of 7
  1. #1
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6

    Help required to speed up a query retrieval

    Hi ,



    I am a novice in microsoft access.As part of an internal project assignment , i have created an access database by exporting data from 4 different tables with two common keys/Headers.I have written a query to combine all the headers of the 4 databases .however , the query is taking a long time to run and almost gets stuck.all my 4 tables have 60000 records as of now.

    Is there any way to speed up the query retrieval which is calling data for almost 30 headers?please guide.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you said 4 tables, then said 4 databases....which is it or is it both?

    are you exporting TABLE via TRANSFERSPREADSHEET?
    are you combining all tables into 1 query then exporting?

  3. #3
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    What is the table structure and what is the output you are trying to get to ?

    It sounds as if you're running some sort of cross join, which will get painful with that many records.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6
    Hi ,

    I have an excel workbook with 4 worksheets which i am importing into access as 4 different tables into one access database .I am importing using DoCmd.TransferSpreadsheet by writing a macro in vba.
    Later on , i am combining all the tables into 1 query. when i used the query wizard to create a new query with all the fields of the 4 tables , i got the required output.However , when i delete the records and rerun a fresh query , it is taking too much time.Hence asking if there is any way to speed up the query output.

  5. #5
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6
    Quote Originally Posted by Minty View Post
    What is the table structure and what is the output you are trying to get to ?

    It sounds as if you're running some sort of cross join, which will get painful with that many records.
    Hi ,

    I have an excel workbook with 4 worksheets which i am importing into access as 4 different tables into one access database .I am importing using DoCmd.TransferSpreadsheet by writing a macro in vba.
    Later on , i am combining all the tables into 1 query. when i used the query wizard to create a new query with all the fields of the 4 tables , i got the required output.However , when i delete the records and rerun a fresh query , it is taking too much time.Hence asking if there is any way to speed up the query output.

  6. #6
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Re-running the query with less records shouldn't take longer... That makes no sense.
    What is the Query ? Please open it the designer and go to SQL view, and paste what is there here for analysis.
    Or zip your database and post it all here.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  7. #7
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6
    Hi Minty,

    PLease find attached the link for downloading the access database and excel workbook.instructions also pasted to follow the process.
    https://drive.google.com/file/d/1p4t...ew?usp=sharing

    Thanks for helping out.Will wait for your reply.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 20
    Last Post: 03-10-2019, 04:42 PM
  2. List box column values retrieval
    By Shamli in forum Access
    Replies: 3
    Last Post: 08-13-2018, 11:01 AM
  3. Market Data Retrieval
    By Grefcon901 in forum Access
    Replies: 16
    Last Post: 04-07-2016, 01:59 PM
  4. How to speed up my Query
    By Cfish3r in forum Queries
    Replies: 2
    Last Post: 10-18-2012, 02:55 AM
  5. Record Retrieval/Modification Based On Entry
    By eddiebo924 in forum Forms
    Replies: 1
    Last Post: 06-19-2011, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums