473,499 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Calculations

36 New Member
Hi,
I have an Access database 2003 for product, orders and customer information.
I've joined them to determine the most sold product.


The results of my query looks like this:-
ProductID NumberOrdered
3001............ 2
7958............ 3
3001............ 1
3001............ 3


Now I desire to achieve the following:-
Be able to take the result of this query and have it NOW look like this:-

ProductID NumberOrdered
3001 ............ 6
7958 ............ 3

I tried the Totals (Sum/GroupBy/Count) but it changes all my product Ids to 1.
The other results of my trying just don't produce what I desire to achieve.

Any help rendered would be greatly appreciated.
Oct 22 '09 #1
2 1162
student2
36 New Member
I redid it again and this time it works thanks anyways :-)
Oct 22 '09 #2
NeoPa
32,557 Recognized Expert Moderator MVP
As long as you Group by [ProductID] and Sum on the [NumberOrdered] it should be fine for you.

Welcome to Bytes!
Oct 22 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

63
5823
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
1
6920
by: David | last post by:
Hi everyone. I have read every page that Google returns on this topic, but can't find anything that resolves my problem. Basically, I have an Access Database that does a number of different...
9
2675
by: MacDermott | last post by:
I have an Access MDB which instantiates a class in a custom DLL, manipulates it for a while, then sets it equal nothing. The MDB does other things,too, and generally behaves itself as desired....
14
2444
by: Crimsonwingz | last post by:
Need to calculate a sum based on a number of factors over a period of years. I can use formula ^x for some of it, but need totals to carry over in the sum and have only been able to do this thus...
7
1379
by: Ananda Sim | last post by:
For those who haven't RSSed the blog: http://blogs.msdn.com/access/archive/2005/10/13/480870.aspx
6
3821
by: migueltxa | last post by:
Hi all, I have a problem with some calculations in MS Access 2003. I have 3 fields (Qty, Price and VolumeUSD) in a form and the following formula: VolumeUSD = Qty * Price. Qty and VolumeUSD...
4
9721
by: MrsBean | last post by:
I've been working on learning how to use PHP with MS Access, and as long as I use ODBC, I can make it work. I want to use a DSNless connection. Everthing I have tried has failed. Can anyone show...
1
1560
by: robert d via AccessMonster.com | last post by:
I don't even know if I'm able to describe what I need in the correct jargon, so please bear with me. A potential client likes my application for three out of four tasks they need done. The other...
2
3215
by: Michael Bialowas | last post by:
Hello all, I have been searching the net endlessly and found this ng, so I thought I would give a try. Anyways, I have a few problems I am trying to implement a combo box which presently contains...
3
1301
by: Nashwa24 | last post by:
Hi all, I'm a newbie in Access and really need help. I need to do some calculations on data stored in a database's table. Previously I used to store the data in an excel sheet and run a visual...
0
7128
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.