473,395 Members | 1,680 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,395 software developers and data experts.

Simple math

Hello All

Thanks in advance for help on my question. I'm new to Access.

I have some data I would like to enter daily ("units") corresponding to a
salesperson. I also have data (Hours worked) that I can only enter weekly,
also corresponding to a salesperson. How can I add up the daily units to
arrive at my ultimate answer: "units/hours worked"? Thanks again; let me
know if I need to share other info re: table design, etc.

Brian
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200510/1
Nov 13 '05 #1
6 1702
If you want a more detailed answer, yes you will have to give much more
detail. But for now let me ask this: Where are you planning on
reading this "ultimate answer"?
1. On a form
2. On a report

3. (which is not an answer) is storing it in a table. Big no-no.

Nov 13 '05 #2
BRIAN L via AccessMonster.com wrote:
Hello All

Thanks in advance for help on my question. I'm new to Access.

I have some data I would like to enter daily ("units") corresponding to a
salesperson. I also have data (Hours worked) that I can only enter weekly,
also corresponding to a salesperson. How can I add up the daily units to
arrive at my ultimate answer: "units/hours worked"? Thanks again; let me
know if I need to share other info re: table design, etc.

Brian

You should have a from and to date range. If not, let's say you have a
week with the To Date = Friday, subtract 4 to get Monday, the beginning
of the week.

In a query (QUery/New/Design) add the table containing units. Drag down
the EmpID and the Units and SaleDate. Then you need to put the date
range for the criteria. Let's say the form is called MainForm. You
have 2 fields on that form called FromDate and ToDate. You could then etner

Between Forms!MainForm!FromDate And Forms!MainForm!ToDate

Now click on the menu bar for View/Totals. THere should be a GroupBy on
Employee, Sum for Units, and WHere for the SalesDate.

You can use Dlookup on this query to get the result. ANd then create a
calced field for the units/hours.
Nov 13 '05 #3
Thank you for your suggestions! I'm not sure how to make it all work, though.
My form ("Daily Billed Units") has fields for Employee ID, Date, Billed Units.
For FromDate and ToDate, would someone have to enter this data? Where would
this range be stored?

Salad wrote:
Hello All

[quoted text clipped - 7 lines]

Brian


You should have a from and to date range. If not, let's say you have a
week with the To Date = Friday, subtract 4 to get Monday, the beginning
of the week.

In a query (QUery/New/Design) add the table containing units. Drag down
the EmpID and the Units and SaleDate. Then you need to put the date
range for the criteria. Let's say the form is called MainForm. You
have 2 fields on that form called FromDate and ToDate. You could then etner

Between Forms!MainForm!FromDate And Forms!MainForm!ToDate

Now click on the menu bar for View/Totals. THere should be a GroupBy on
Employee, Sum for Units, and WHere for the SalesDate.

You can use Dlookup on this query to get the result. ANd then create a
calced field for the units/hours.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200510/1
Nov 13 '05 #4
On a report so I can track "Billed Units/Hour Worked" over time. What other
details are needed?

I now have a table and form for:
1. Employee Hours Worked, inc fields for Emp ID, Week Ending Date, Hours
2. Daily Billed Units, inc fields for Emp ID, Date, Billed Units
3. Employee first and last name, auto# ID

Chance wrote:
If you want a more detailed answer, yes you will have to give much more
detail. But for now let me ask this: Where are you planning on
reading this "ultimate answer"?
1. On a form
2. On a report

3. (which is not an answer) is storing it in a table. Big no-no.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200510/1
Nov 13 '05 #5
Try this:

1. Create the report.
2. Put the 2 fields that need to be included in the calculation on the
report.
3. Run the report and view the 2 fields.
4. Go back into design view
5. Click on one of the fields and copy/paste it.
6. Double-click on the new field
7. Your properties should be brought up for that object.
8. Name it
9. In the control source there is a little box all the way to the
right. It has 3 dots in it. Click on that button. Now you can build
a for a formula. Play around with the 3 boxes on the bottom.

For example. Let's say you want to add txtBox1 to txtBox2. Well, we
are lazy and don't want to memorize code, so we use this builder
function. We get to the properties of txtBox3 (as described above) and
we are now in the window in step 9. Double-click on "Reports". Find
the report we have open and double-click on it. Then find txtBox1 (in
the second box) and double-click it . The object is added to the
Expression box on the top. Now type +. Then find txtBox2 and
double-click it. Now they are added together.

Get it?

Nov 13 '05 #6
BRIAN L via AccessMonster.com wrote:
Thank you for your suggestions! I'm not sure how to make it all work, though.
My form ("Daily Billed Units") has fields for Employee ID, Date, Billed Units.
For FromDate and ToDate, would someone have to enter this data? Where would
this range be stored?
No, not really. But you should have the week ending date. If you have
the week ending, what is the week start? How many days do you need to
subtract to get the start date from the end date? If you can figure out
what the starting day is, you have a range to select from. See
DateAdd() function to determine how to add/subtract dates.

Next, read something in help in learning how to create a Totals query.
Either that, look at Dsum(), Dcount().


Salad wrote:
Hello All


[quoted text clipped - 7 lines]
Brian


You should have a from and to date range. If not, let's say you have a
week with the To Date = Friday, subtract 4 to get Monday, the beginning
of the week.

In a query (QUery/New/Design) add the table containing units. Drag down
the EmpID and the Units and SaleDate. Then you need to put the date
range for the criteria. Let's say the form is called MainForm. You
have 2 fields on that form called FromDate and ToDate. You could then etner

Between Forms!MainForm!FromDate And Forms!MainForm!ToDate

Now click on the menu bar for View/Totals. THere should be a GroupBy on
Employee, Sum for Units, and WHere for the SalesDate.

You can use Dlookup on this query to get the result. ANd then create a
calced field for the units/hours.


Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: barnesc | last post by:
Hi! Here's a simple hashcash implementation in Python. 28 lines of actual code. Can be reduced to 17 lines for instructional purposes, if you don't want clustering, and use xrange() instead...
20
by: drs | last post by:
Hi, I am trying to find all lists of length x with elements a, b, and c. To this end, I have created the class below, but it is not quite working and I am having trouble figuring out what to...
2
by: Senraba | last post by:
I would like to have a 600 X 400 window open with search results from CPanel's Entropy Search form. I have the following in the <HEAD> tag: <script language="javascript"...
2
by: Webdiyer | last post by:
Hi, We all know that the return value of Math.Log(8,2) is 3,but how about (int)Math.Log(8,2)? On my machine,the return value of (int)Math.Log(8,2) is strange enough! it's not 3 but 2 ! I've...
3
by: vezquex | last post by:
What I want is an element with a shifting background image: <html><head> <script type="text/javascript"> var x = 0 var y = 0 inc = 4 function bgWander(el){ x = x +...
1
by: macklin01 | last post by:
Hi, everybody. I'm trying to do some last cleaning up on the following php page I wrote: http://www.math.uci.edu/~pmacklin/Publications.php This URL parses an XML file of publications: ...
10
by: Ron | last post by:
I want to calculate the surface area of a sphere from an inputed radius with option strict on. I guess I am not converting something correctly. Here is what I am doing: I have a textbox...
0
by: sean | last post by:
I'm trying to create a "rubber band" rectangle effect on my form. Private Sub HighlightSectionOfTrack(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles...
5
by: gray_slp | last post by:
I am designing a web survey using surveymonkey.com and discovered I could use javascript to modify their standard question formats much the same as can be done in myspace. I used this feature to...
22
by: giordan | last post by:
Hi all! I've wrote this code: <script type="text/javascript"> var largImg; var altImg; var txtTop = '<b>Ottima scelta!</b> Ora compila il form e premi "Ricevi banner". Il...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.