Re: problem with multiple join table query on report
- From: "sobeit via AccessMonster.com" <u41844@uwe>
- Date: Thu, 12 Jun 2008 23:49:17 GMT
thanks mr. john
heres my sql.. im on deadlock on this dont know how i cud solve this
SELECT SOREPORT.INVDATE, SOREPORT.[SO DATE], SOREPORT.TRANSTYPE, SOREPORT.REF,
SOREPORT.SALESMAN, SOREPORT.[SO#], SOREPORT.[CLIENT NAME], SOREPORT.AMOUNT,
SOREPORT.ADJUSTMENT, SOREPORT.FURNITURE, SOREPORT.SFURN, SOREPORT.SERVICES,
SOREPORT.TRADING, SOREPORT.DELIVERY, SOREPORT.DISCOUNT, SOREPORT.VAT,
SOREPORT.INVINFULL, SOREPORT.CARPENTRY, SOREPORT.UPHOLSTERY, SOREPORT.
FINISHING, SOREPORT.METALWORK, SOREPORT.SEWING, SOREPORT.SUBCON, SOREPORT.
PAYMENT, Sum([OUTPUT REPORT].ORAMOUNT) AS DLABOR, Sum(TRANSACTION.TPRICE) AS
MATERIALS
FROM [OUTPUT REPORT] LEFT JOIN (SOREPORT LEFT JOIN [TRANSACTION] ON SOREPORT.
[SO#] = TRANSACTION.SONO) ON [OUTPUT REPORT].SONO = SOREPORT.[SO#]
WHERE (((SOREPORT.INVDATE)>=[forms]![Report Date Range]![BeginDate] And
(SOREPORT.INVDATE)<=[forms]![Report Date Range]![EndDate]))
GROUP BY SOREPORT.INVDATE, SOREPORT.[SO DATE], SOREPORT.TRANSTYPE, SOREPORT.
REF, SOREPORT.SALESMAN, SOREPORT.[SO#], SOREPORT.[CLIENT NAME], SOREPORT.
AMOUNT, SOREPORT.ADJUSTMENT, SOREPORT.FURNITURE, SOREPORT.SFURN, SOREPORT.
SERVICES, SOREPORT.TRADING, SOREPORT.DELIVERY, SOREPORT.DISCOUNT, SOREPORT.
VAT, SOREPORT.INVINFULL, SOREPORT.CARPENTRY, SOREPORT.UPHOLSTERY, SOREPORT.
FINISHING, SOREPORT.METALWORK, SOREPORT.SEWING, SOREPORT.SUBCON, SOREPORT.
PAYMENT;
if only the SOREPORT AND TRANSACTION table is joined i do get the data that i
want but when i add the OUTPUT REPORT table everything seems not right as far
as data calculation is concern
thanks for help sir
John W. Vinson wrote:
if i join my TWO table using left join the data i want to extract is doing
what exactly i want but when i add another table to join in, its doesNt show
the right data that i want , ive tried all the types of join but its always
inaccurate data.
We'd be glad to help if we could but since you have not posted the SQL of the
query, the data you expect, or the data you're actually getting, it's
impossible to determine what the problem might be or how to fix it.
Give us a hand here please?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200806/1
.
- Follow-Ups:
- Re: problem with multiple join table query on report
- From: John W . Vinson
- Re: problem with multiple join table query on report
- References:
- problem with multiple join table query on report
- From: sobeit via AccessMonster.com
- Re: problem with multiple join table query on report
- From: John W . Vinson
- problem with multiple join table query on report
- Prev by Date: store date in table
- Next by Date: Re: updated based on a condition
- Previous by thread: Re: problem with multiple join table query on report
- Next by thread: Re: problem with multiple join table query on report
- Index(es):
Relevant Pages
|