Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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.


 
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]





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





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