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  

Multiple option query to calculate a value



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2007, 12:31 PM posted to microsoft.public.access.queries
CP
external usenet poster
 
Posts: 121
Default Multiple option query to calculate a value

I can do forms and designs but I am completely lost when it comes to
calculations. I can work how to place them and understand that result one
can be used in result three.

I have 6 fields which contain the past 6 months values for invoices per month

I need to make a field that shows the average value of these 6

I need to make a field that shows the % of field6 compared to field5

I need to make a field that shows the % of the average result compared to
field6


  #2  
Old February 14th, 2007, 01:41 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Multiple option query to calculate a value

Unfortunately you first need to fix the table structure. What happens to your
forms, reports, and queries if someone says that you need to track the last
seven months? You have to rebuild them all. Then they say 9 months. Back to
the drawling board again.

Your table has serious normalization problems and just will NOT work
correctly as a relational database. It's set up like a spreadsheet.

I highly suggest getting some relational database training or reading
"Database Design for Mere Mortals" by Hernandez before proceeding any further
on this database.

--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"CP" wrote:

I can do forms and designs but I am completely lost when it comes to
calculations. I can work how to place them and understand that result one
can be used in result three.

I have 6 fields which contain the past 6 months values for invoices per month

I need to make a field that shows the average value of these 6

I need to make a field that shows the % of field6 compared to field5

I need to make a field that shows the % of the average result compared to
field6


  #3  
Old February 14th, 2007, 02:02 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 2,364
Default Multiple option query to calculate a value

If for some reason, you cannot fix the data structure you can use a
normalizing union query as the source for getting your data. Post back
if you need further information on how to do this.


John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County



Jerry Whittle wrote:
Unfortunately you first need to fix the table structure. What happens to your
forms, reports, and queries if someone says that you need to track the last
seven months? You have to rebuild them all. Then they say 9 months. Back to
the drawling board again.

Your table has serious normalization problems and just will NOT work
correctly as a relational database. It's set up like a spreadsheet.

I highly suggest getting some relational database training or reading
"Database Design for Mere Mortals" by Hernandez before proceeding any further
on this 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 05:38 PM.


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