A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Trouble shooting a query



 
 
Thread Tools Display Modes
  #1  
Old December 7th, 2009, 02:31 PM posted to microsoft.public.access.queries
Brigid
external usenet poster
 
Posts: 2
Default Trouble shooting a query

I have a database which collects sales for a company that sells burrito's.
We deliver a certain number and a certain number is wasted. The Difference
between these two numbers is the Sold amount. We bill based on the Sold and
the Wasted. Therefore, i need to do a subtraction in a calculated field in a
query. No problem. that works perfectly. The query shows the balance. But
I want to copy the query to an excel spreadsheet and do a pivot table. When
I do that, there are three of these calculations that show up as "counts' not
"sums" because the Pivot is adding all the numbers together. But because
those three are looking like counts, I get a "1" for each other of them
instead of a sum.

I've looked at the query and redone the calculating field and formula and
nothing works. These three records are newly added to the table and the
query, so that is the only indication that something went awry when I added
them to the previous version of the table / query. But I did everything
exactly the same (I think) and I've wracked my brain to solve the problem and
can't. any thought? I've sent you a page shot of the pivot table process
that shows the problem. Can I fix this without redoing the whole database?
  #2  
Old December 7th, 2009, 05:45 PM posted to microsoft.public.access.queries
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Trouble shooting a query

Brigid -

It sounds like the issue is in your pivot table in Excel. You can change
the 'count' to 'sum' by right-clicking on the field in the pivot table and
selecting Field Settings.

--
Daryl S


"Brigid" wrote:

I have a database which collects sales for a company that sells burrito's.
We deliver a certain number and a certain number is wasted. The Difference
between these two numbers is the Sold amount. We bill based on the Sold and
the Wasted. Therefore, i need to do a subtraction in a calculated field in a
query. No problem. that works perfectly. The query shows the balance. But
I want to copy the query to an excel spreadsheet and do a pivot table. When
I do that, there are three of these calculations that show up as "counts' not
"sums" because the Pivot is adding all the numbers together. But because
those three are looking like counts, I get a "1" for each other of them
instead of a sum.

I've looked at the query and redone the calculating field and formula and
nothing works. These three records are newly added to the table and the
query, so that is the only indication that something went awry when I added
them to the previous version of the table / query. But I did everything
exactly the same (I think) and I've wracked my brain to solve the problem and
can't. any thought? I've sent you a page shot of the pivot table process
that shows the problem. Can I fix this without redoing the whole database?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.