Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Queries > Help With a Que...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 41177 of 43104
Post > Topic >>

Help With a Query; Using Expression Builder

by =?Utf-8?B?cnlndXk3Mjcy?= <ryguy7272@[EMAIL PROTECTED] > Aug 5, 2008 at 10:42 AM

I’m suck on an Expression that should be pretty simple (I think).  In the

Total line, I have Expression.  In the Field line I have, “SUM: 
Sum([tblRegion]![CUR_MTD_REV]+[tblRegion]![JUL])”

Basically, I am trying to sum all the Current Month To Date revenue and
the 
July revenue, for all Sales Reps, but I only have to do this for Inventory

Class of type Class2.

I am getting some VERY bizarre results.  For instance, one sales rep
should 
have about $48,000 and Access is telling me that the rep has $4.8 million.
 
Clearly something is wrong, but I can’t figure out what.

SQL:

SELECT tblRVP_Mapping.RVP, tblRVP_Mapping.Director, tblRVP_Mapping.[Sales 
Rep], tblRegion.inventoryClass, tblRegion.CUR_MTD_REV, tblRegion.JUL, 
Sum([tblRegion]![CUR_MTD_REV]+[tblRegion]![JUL]) AS [SUM]
FROM (tblRM_MediaSales2008 INNER JOIN tblRVP_Mapping ON 
tblRM_MediaSales2008.SalesRep = tblRVP_Mapping.[Sales Rep]) INNER JOIN 
tblRegion ON tblRVP_Mapping.[Sales Rep] = tblRegion.SalesRep
GROUP BY tblRVP_Mapping.RVP, tblRVP_Mapping.Director,
tblRVP_Mapping.[Sales 
Rep], tblRegion.inventoryClass, tblRegion.CUR_MTD_REV, tblRegion.JUL
HAVING (((tblRegion.inventoryClass)="Class2"));

If anyone can tell me what is wrong here I would really appreciate it.
Finally, I would like to sum a few more elements, but I think I can figure

out how to do that, as soon as I understand the required logic.

Thanks so much,
Ryan---



-- 
RyGuy
 




 13 Posts in Topic:
Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-05 10:42:11 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-05 13:34:31 
Re: Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-05 15:11:01 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-05 15:30:43 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-05 15:38:55 
Re: Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-05 21:52:01 
Re: Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-06 20:16:01 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-06 22:13:43 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-06 22:16:02 
Re: Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-07 11:57:01 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-07 14:19:04 
Re: Help With a Query; Using Expression Builder
Lord Kelvan <the_iddio  2008-08-07 19:37:30 
Re: Help With a Query; Using Expression Builder
=?Utf-8?B?cnlndXk3Mjcy?=   2008-08-08 12:42:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 21:11:01 CST 2008.