473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

want to generate a report with product names and total $ per quarter of all.

Example: Product 1 in the invoice table has many values that I would like to total by quarter. Another field with product 2 and etc. to perform the same total per quarter. When I query I only see one value, not all records in the total. What would be the best approach to get this report of products and totals per quarter? Working in MS Access 2000.

example of what I need

Product name Total $
Bill of Ship $200
Attached Files
File Type: zip db1.zip (13.2 KB, 91 views)
Jan 28 '10 #1
2 1399
beacon
579 512MB
Hi chewee,

I took a look at your database and the first problem I see is that your database isn't normalized, meaning that you don't have your tables set up in a way that promotes meaningful relationships. This makes it extremely difficult to troubleshoot because your tables/data aren't technically uniform.

For instance, all of the available products/buyers/reason codes/etc. should be in their own table, along with any descriptions/addresses/phone numbers/etc. that are related to them. These tables should also have a unique ID (typically an autonumber field), also called a primary key, in the table to identify which field belongs to which index.

Then these tables should be setup with relationships using a foreign key in other tables. An example of this would be having the Product primary key (perhaps called ProductPK) in the Products table link to the Product foreign key (perhaps called ProductFK) in the Invoice table.

The reason for doing this reduces the amount of data entry that must be done and makes querying the information a million times easier.

Here's a link to an article written by one of the forum administrators: Normalisation and Table structures

Check out the link and see about getting your database in order first. Once you take care of that, then it will be much easier to return the data you are looking for because your query will be able to hone in on just the elements that you are looking for much quicker.

If you have any questions after reading the link and trying to alter your database, don't be afraid to ask. This site is full of great people that are more than willing to help and, most importantly, teach you how to be a better database developer.

~beacon
Jan 29 '10 #2
NeoPa
32,556 Expert Mod 16PB
Well, it seems I'm not required here after that answer by Beacon. Nice.

I would add one thing though. We prefer questions to be asked explicitly rather than to be partially asked and the experts expected to go and delve into your database to understand what the question is. Attaching a database should really only be done when requested to, at least the question should stand on its own and not require access to the database to be properly understood.

That said, you have some very good advice there from Beacon so all that's left for me to do at this stage is to say :
Welcome to Bytes!
Jan 30 '10 #3

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

Similar topics

0
by: Otis Roth | last post by:
----F34848E08D128A79C Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled...
5
by: William Bradley | last post by:
The database I am working on was built by someone else. This database records a production run. When a report is called for this database, the report does not come to the screen but a series of...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
2
by: noway | last post by:
I have a report that has 2 text boxes on it. One shows the Name the other shows a count of the name. The are in their own header. My boss wants to be see all the names but depending on the time...
1
by: BigNasty | last post by:
I have created a report, where there is multiple items with different values in a group that i total up at the end: App 3 App 3 App 2 Com 1 Com 2
2
by: ricktech101 | last post by:
Hi, I have a table with a field that shows the number of pieces that a parcel contains. It looks like this: ParcelID, Pieces, Description Data example: 1001, 5, Jackets 1002, 10, shoes etc
7
by: Sunil Korah | last post by:
Hi, I haven't used access reports much. I have a problem in getting the total of a group. I have 3 fields, ProgName (Program name), Pname (Participant's name) and PCategory (Participant...
1
by: kamalis14 | last post by:
I am trying to create a summary report that will be run monthly for Clients. I just cant seem to work it out. Each client can order 3 types of products. Each type consists of product codes describing...
3
by: Gilberto | last post by:
Hello, I need the user to be able to select the language of some reports. Right now every product has already its current french and english name. And I was about to simply create another whole...
1
by: Elainie | last post by:
I have a form with 2 fields on it, one for directorate and the other for quarter's i.e. 1,2,3,4 if a certain directorate and quarter is selected go and get a certain report, that I have built...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.