Wrox Programmer Forums
|
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 March 29th, 2004, 12:37 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default frustating query

Hi friends,

  I have two queries(qry_order, qry_receive).
structure is

qry_order

jobCode typefactor codetype totQtyOrdered

qry_receive

jobCode typefactor codetype totQtyReceived


I want a query to select jobCode,typefactor,codetype,totQtyOrdered,totQtyRe ceived,totQtyOrdered-totQtyReceived as balance from these two queries.

I tried, left join, union, join but no result. Wat my aim is when i am receiving the material, i want to show the user Total quantity ordered for that job till now and total we received and balance to be received. If no qty is received only data from ordered table is shown.

Wat could be the query. Every response is highly appreciated.



 
Old March 29th, 2004, 04:29 AM
Authorized User
 
Join Date: Jul 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This may teaching you how suck eggs, but I always set up my complex query use Query Design View, once working I just copy the SQL code that is automatically generated into my procedure.
HTH

Cheers Ray





Similar Threads
Thread Thread Starter Forum Replies Last Post
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
how to make a query from an existing query raport SQL Language 3 November 13th, 2006 08:59 PM
I solved insert query.now see this Update Query. amit_mande@yahoo.com VB.NET 2002/2003 Basics 2 September 21st, 2006 12:48 AM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





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