473,397 Members | 2,077 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,397 software developers and data experts.

Using query results in an existing report

25
I have two tables that are not linked, one contains historical data related to the number of customers in a particular month while the other table contains staffing information and needs based on customer volume in a particular day. I'm trying to project the worked hours for employees based on customer volume. My table for annual customer data contains the month/year, number of customers, number of days in the month, and the avg customers per day. The second table contains daily required staffing loads and has many fields for each type of employee needed during the day. I know that my formula for calculating the field is the sum of all of the employees used at a particular time of day multiplied by 2080 (totals hours worked in a year) divided by the average annual customer volume multipled by the days in the year:
(Annualized employees per hour * 2080)/(total annual customers * 365)

My question is how do I use the values from the annual visits table when there's no logical link to the staff distribution?

I also have a query that calculates the sum of customers annually, but how do I use that result in an existing report based on the staff distribution?
Nov 9 '12 #1

✓ answered by Rabbit

I have trouble understanding your formula, some sample data would go a long way.

As for your second question, we normally only allow one question per thread. But that's an easy one so I'll let it slide. You can use one of the domain aggregate functions. Either DSum(), DCount(), DLookup, etc. If you need more help than that, please create a new thread for it.

4 1567
Rabbit
12,516 Expert Mod 8TB
I have trouble understanding your formula, some sample data would go a long way.

As for your second question, we normally only allow one question per thread. But that's an easy one so I'll let it slide. You can use one of the domain aggregate functions. Either DSum(), DCount(), DLookup, etc. If you need more help than that, please create a new thread for it.
Nov 9 '12 #2
MLEBL
25
The second question was an option I was trying to get the first section to work. I tried the DSum() option and it worked beautifully! Thanks for your assistance Rabbit, you're a genius!
Nov 9 '12 #3
Rabbit
12,516 Expert Mod 8TB
Glad you got it working, good luck with the rest of your project!
Nov 9 '12 #4
MLEBL
25
Thanks . . . it's a very ambitious scheduling tool, so I'm sure you'll be seeing me here again soon!
Nov 9 '12 #5

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

Similar topics

1
by: Guy Erez | last post by:
Hi, I'm running queries with MySql 4.0.17 that return thousands of records. Because I need to present them in GUI, I returieve the results in chunks using LIMIT, for example - get first 100,...
1
by: Andrew Slentz | last post by:
I have an access 2002 database which I am having trouble with. Basically I run a select query which results in a result of "yes" or "no". I need that result to be put into an update query. I am...
5
by: chrisse_2 | last post by:
Hi, I need some help. I have created a form where there are 3 combo boxes and a text box to search through records. Based on what the user fills in, you then it a "go" button to run the query...
2
by: Debbie | last post by:
When reporting the results of a select query which searches for particular words or phrases in a memo field, is it possible to bring attention to those words in the report using color? Thanks! ...
2
by: kevcar40 | last post by:
hi i have a query which returns the top 5 Areas of concern i.e Area(field name) Area 1 Area 2 Area 3 Area 4 Area 5 the results are displayed on a continuous form i am now trying to use this...
1
by: Newbie | last post by:
I am pretty new to Access Reports. I used the wizard to write a detail report that works well. In the group footer, I would like to show the totals for each column in my report. So, I wrote...
9
by: gwww | last post by:
I have two fields on a form called Employee Name and Employee Number. I would like the user to select their name and their coresponding number will appear in the Employee Number field. The...
0
by: savas_karaduman | last post by:
I am trying to create graph report with using query results. Query result show me `total quantities` for some related `category name`. When i attempt to create a Chart Report with wizard by using...
11
by: Supermansteel | last post by:
I have a Query that essentially runs a report by date. So every month I go in and run my results have the following columns: Date TO: Count(Account Num) Amount: Sum(Amount) Except: Where Like...
4
by: kstevens | last post by:
I have a report, and on the report is a min, avg, and max query each with (ok who really cares) 20 or so records. At the footer of the report i would like to have a total. I requery for each...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
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,...

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.