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
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2004, 09:41 AM
Authorized User
 
Join Date: Oct 2003
Location: London, , United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Speedy Queries

What makes a query run slow, is it the expressions or formulas you have created, is it the number of Tables you have added to it, or is just that there is too many records? My Union query also seems to be very slow, and I have tested this by joining only 2 small queries. If anyone can help me to improve on my query it would very much appreciated.
Thanks
Reply With Quote
  #2 (permalink)  
Old August 12th, 2004, 12:58 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Post your query so others can make recommendations.


Reply With Quote
  #3 (permalink)  
Old August 12th, 2004, 09:26 AM
Authorized User
 
Join Date: Oct 2003
Location: London, , United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a copy of a query which is called once my Union query is been run. There are another 7 such queries all linked to the one Union, where the queries filter for certain details and if req will multiply the "Qty" Field in order to increase this. They are then Appended to a Table once the Union query is complete. All the queries pull their data from one Table "tblTicker2". This Table contains around 200,000 records and will continue to rise, with 17 Fields. I need these Fields as they are all unique to each ind records, so would not be able to split them out to another Table.

SELECT tblMembers.Member, [Seller Firm] AS Firm, [Seller Trader] AS Trader, "S" AS [B/S], Contract, 0 AS Bid, IIf(IsNull(Sum([Qty])),0,Sum([Qty])) AS Offer, Qty, Price, [Buyer Trader], [Buyer Firm], [Seller Firm], [Seller Trader], [Time(text)], Time, Sale, Date, Left([Contract],3) AS Metal,TickerID, IIf([Sale]="S","No","Yes") AS Instigator, [Buyer Firm] AS Counterparty, Carry, Comments
FROM tblTicker2 INNER JOIN tblMembers ON tblTicker2.[Seller Firm] = tblMembers.MemberID
GROUP BY tblMembers.Member, [Seller Firm], [Seller Trader], Contract, Qty, Price, [Buyer Trader], [Buyer Firm], [Time(text)], Time, Sale, Date, Left([Contract],3), TickerID, [Buyer Firm], [Carry], Comments
HAVING Contract Like "???3M"

Any help given would be appreciated as I am new to SQL and VBA, and starting to push myself a bit on the Access front-end in order to improve what I have on my databases.[/size=6]
Tony[/font=Arial]

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-using Append Queries steve smart Access 1 May 17th, 2007 11:37 AM
Speedy Racer Uninstaller issue savagesoft BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 May 11th, 2007 05:59 AM
Speedy Racer Not Working On XBOX lbyrdjr BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 May 7th, 2007 10:59 PM
Combining Queries or results from 2 queries Ford SQL Server 2000 24 November 7th, 2005 08:54 PM
Queries xzvi0r Access 5 September 8th, 2003 10:03 AM



All times are GMT -4. The time now is 07:03 AM.


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