Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2008

Tip: Looking for answers? Try searching our database.

Results multiplied by 3??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Love Buzz - 21 May 2008 22:56 GMT
Hello all.

Yesterday I built a query, which had the source of two other queries.  Built
a report and everything looked fine.

Today, I went into the report and noticed that the grand total of 'errors'
was the total errors multiplied by three.  The total volume was not the total
on the report but the total volume of the entire range.  Again, everything
was fine yesterday (I think?).

When I run the query, it comes back with three results (the same results)
for each User ID.  

Thoughts?  I appreciate your help.  Here is my SQL:

SELECT [Returns Associates].[User ID], [Returns Associates].[Associate
Name], [Individual Associate Error Analysis].[CountOfError Indicator], [Total
Volume By Associate].[SumOfItems], [CountOfError Indicator]/[SumOfItems] AS
Expr1
FROM [Total Volume By Associate] INNER JOIN ([Individual Associate Error
Analysis] INNER JOIN [Returns Associates] ON [Individual Associate Error
Analysis].[User ID]=[Returns Associates].[User ID]) ON [Total Volume By
Associate].[UserID]=[Returns Associates].[User ID]
GROUP BY [Returns Associates].[User ID], [Returns Associates].[Associate
Name], [Individual Associate Error Analysis].[CountOfError Indicator], [Total
Volume By Associate].[SumOfItems], [CountOfError Indicator]/[SumOfItems];
Jeff Boyce - 22 May 2008 00:48 GMT
I'll guess that your underlying data has a one-to-many relationship
somewhere in there.

It all starts with the data.  Consider posting a description of your
underlying data for more specific suggestions.

Regards

Jeff Boyce
Microsoft Office/Access MVP

> Hello all.
>
[quoted text clipped - 27 lines]
> [Total
> Volume By Associate].[SumOfItems], [CountOfError Indicator]/[SumOfItems];
Love Buzz - 22 May 2008 15:35 GMT
Thanks for responding Jeff.  I found the problem.  I had three tables joined
and I only needed two of them.  All is good

> I'll guess that your underlying data has a one-to-many relationship
> somewhere in there.
[quoted text clipped - 38 lines]
> > [Total
> > Volume By Associate].[SumOfItems], [CountOfError Indicator]/[SumOfItems];
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.