Hi - Once again I'm asking for your assistance. Ideally, below is how the form (and eventually a report) would look; the first three fields (ID, Date & Vol) I currently have in a table (tblMaster):
I have a table for timesheet entry for a local building firm. I have a separate table containing employees and rates. I have created query "Qry_ Time Costs" which calculates the cost of hours worked by each employee by multiplying the hours field in the timesheet entry table by the rate field in the employees table.From "Qry_TimeCosts" I have created "Qry_TimeCosts1" in which i have included a running total field for time costs per day using the DSum function.
SELECT Qry_TimeCosts.[Project Title], Qry_TimeCosts.[Build Element], Qry_TimeCosts.[Date Worked], Sum(Qry_TimeCosts.Hours) AS Hours, Sum(Qry_TimeCosts.Cost) AS Cost, DSum("[cost]","qry_timecosts","[project title]='" & [project title] & "'" & "AND [build element] ='" & [build element] & "'" & "AND [date worked] <=#" & [date worked] & "#" & "") AS RunTot FROM Qry_TimeCosts GROUP BY Qry_TimeCosts.[Project Title], Qry_TimeCosts.[Build Element], Qry_TimeCosts.[Date Worked], DSum("[cost]","qry_timecosts","[project title]='" & [project title] & "'" & "AND [build element] ='" & [build element] & "'" & "AND [date worked] <=#" & [date worked] & "#" & "") HAVING (((Qry_TimeCosts.[Build Element]) Is Not Null));
This seems to be working for some projects and not for others. In particular dates 3rd 4th and 5th of June seem to be showing null fields, where all other dates have values. A few projects are showing inaccurate running totals whilst others are working fine.
I have 2 tables "Summary Table" and "Select1Summary"
"Summary Table" shows projects, departments and the available hours for each department
eg.
In "Summary Table" for 71043-40 Project, there are 1808 hours available at the beginning
"Select1Summary" shows Project, department, Month and the hours each department will be booking
eg.
In "Select1Summary" Table(Actually its a summary query, but am putting it as a table)
for 71043-40 Project, Department 11 on 30/04/2007 will be booking 171 hours (ie in April dept. 11 books 171 hours for project 71043-40)
for 71043-40 Project, Department 11 on 31/05/2007 will be booking 135 hours
for 71043-40 Project, Department 11 on 30/06/2007 will be booking 108 hours
What i need to show is running totals in a new query like
for 71043-40 Project , Department 11 on 30/04/2007 Available hours = 1637 (ie 1808-171) for 71043-40 Project, Department 11 on 31/05/2007 Available hours = 1502 (ie 1637-135) for 71043-40 Project, Department 11 on 30/06/2007 Available hours = 1394 (ie 1502-108)
I have a number of forms and on each form there are a number of check boxes. I want to be able to add up how many check boxes read true. i.e if check1 = true then total = 1, if check2 = true then total now = two. Can I achive this?
Hi everybody, I have a problem with my running totals field. Check the database below (password is "xixo"). In the detailshow form, there are a field called "Em Débito". This form groups the records table by [Casa] and by date. What I need is to sum all the [ValoR] values in the records table where [Data] is a date before the date in the row, and field Casa is the same as the [Casa] field in the query.
Can somedy help me please?
The database: http://www.danielmartins.com/gestao.zip
I need some help with a report that has running totals of both positive and negative values. The report needs to have a subtotal of the positive values only, then the negative values only. The negative and positive values appear all in the same list. The running sum property over group/over all only adds all the values together which is of no use. Is there any easy way to do this?
Example Report snippet: (Ignore all the dots - its the only way I could get everything to line up)
I've tried to read a couple of tutorials on how to achieve this and they've managed to lose me completely; I couldn't find one that was for forms, specifically, either. I can't help but think that there must be an easier way - so I came to you guys.
I have two fields I'd like to total: txtPrice and txtQuantity. They're both on a continuous subform, frmSub, embedded within the parent form frmMain. The txtTotPrice and txtTotQuantity text boxes are located on the frmMain.
Is there an easy way of using a query to total a certain column, given a certain domain (for example, must have same docket number?)
I remember reading a tut on how to count records using Running totals in a report - but I cannot remember where I read it. It went something like this.
In the section that you want to count, add a field with record source '=1' and make it a running total for the group.
In the header (one level up from where the running total resides) add a field with record source =Max(RunningTotalField)
Although the 'intellisense' sees my 'RunningTotalField' when I create the above mentioned formula, when I run the report, its asking me to input the value for the 'RunningTotalField'?
Have I confused some concepts or am I on the right track?
i have a table with health facilities (A,B,C,D) . each health facility has data from several months (Jan, Feb, Mar etc). the table has 2 fields (New Patients) and (Cumulative Patients) . Cumulative Patients is a total of New Patients for current month plus the total patients for the previous month. In the Facility Footer of the report if i create text boxes with data =Sum([New Patients]) and =([Cumulative Patients]) works well.
However in the Report Footer =Sum([New Patients]) works but =Sum([Cumulative Patients]) totals everything. if i try =([Cumulative Patients]).
Hey all! This is my first post. Been searching through the net all day trying to find a solution to this problem. Basically i have a table that looks like this (regular text is what i have and bolded text is what I need:Name Date Qty MOBrad 12/12/2007 23323 4423John 12/11/2007 3445 4432 John 12/11/2007 344 4432 John 12/11/2007 45 4432 John 12/11/2007 44 4432 John 12/11/2007 3445 4432 Grand Total: (Qty)And then I'd like to be able to carry this over and display a grand total at the bottom of every page of a report that I would need to generate. Our company produces forms and we sometimes have 60 - 70 people working on a single job. We want to see their hours individually but we would also like to see a grand sum of all their hours. If someone could help with this or needs more info let me know. Thanks for all your help!
I have a table. The table stores a workers name and information such as Primary Station Verified. The Primary Station Verified is a yes/no checkbox. It also has the dates that each worker is verified.
I want to do a query that will show me the total number of people and out of that total number of people how many are verified. Then I will turn that data into a graph.
How do I do the Query to show me (example) There are 50 people and (example) 25 of them are verified? I know how to do the query to show all of the people and who are verified but I just want the numbers.
I'm needing help with a totals query. I have a table with a Department field, a charge field, and a charge code field.
I'm running a query that first groups by the department, then uses the max function to give me the highest charge within that department. For the third field of the query, I want to return the charge code that aligns with the highest charge, unfortunately none of the general totals seem to work and I can't figure out an expression to work either
I have a table containing travel claims data. In some instances there are multiple claims attached to certain policy numbers. Currently the Table has a seperate line of data for each and every claim. What I need to do is to ensure that there is only ever one line of claims data per policy number and that columns containing data such as: Total Reserves / Total Paid / Net Reserves / Claims fees are totalled on that line.
The reason I need to do this is that I then want to run a query that compares total claims per policy against total premium per policy.
I have a table that I want to sort by the by class year. But i have like 20 options that are yes/no that i want to count the total of each so that i can do charting in excel.I have no idea how to create the query. I know that I only have to count the yes's.Bascially I need to my query to show me something like thisYear AE ALD TUTOR FS2006 3 5 8 12007 5 5 9 0Year is a numberAE, ALD, Tutor, FS are boolean yes/noi don't want the select to find what is true for all just count each field individually but display it together.Does that make sense?I am really lost please help.
I'm trying to set up a totals query where I do the following:
AreaAbbr is in column 1 with Total set to "Group By" FormReceived is in column 2 with Total set to "Count" FormReceived is in column 3 with Total set to "Where" and Criteria set to 1
The query is working correctly but not exactly how I want it to. It returns only those "AreaAbbrs" where the "FormReceived" field is set to 1 and it counts them. What I would like it to do is return ALL "AreaAbbrs" and set the count of "FormReceived" to zero instead of omitting those that do not have "FormReceived" set to 1.
A crosstab query gives the totals for students in particular classes per the Class they belong to, i e
College A – Class1 4, Class2 12, Class3 17 College B - Class1 12, Class2 124, Class3 12 College C - Class1 5, Class2 16, Class3 7 College D - Class1 4, Class2 13, Class3 9 Etc etc
Experts, is there a way to an overall total of the lot, ie
Class 1 30, Class 2 48, Class 3 28, Class 4 etc etc
I have to make a query using information out of an existing table. In the table there are two columns which I have to use in the query. I need to have the totals of these two columns. The table looks like this: country amount1 amount2 A 2 3 B 4 6 C 5 2 D 5 3
What I want the query to look like is: country amount1 amount2 A 2 3 B 4 6 C 5 2 D 5 3 16 14
As I am dutch, my english will not be perfect Thank you in advance
SELECT Commissions.TransactionID, Commissions.OriginatorID, Commissions.AmountPaid, Commissions.DatePaid FROM Commissions WHERE ((Commissions.DatePaid)> DateAdd("d", -32, Date()));
I want to add up commissions paid in a month using a simple query and im not sure how to proceed from here. This example will pull records for the last 32 days, but now how do I do the sum commissions.amountpaid to work?
I'm looking for suggestions on the best way to do this...
I want to track our total sales within a date range but by certain groupings of categories. This is for disc jockey bookings. We have a field named "Job_Type" and we would like to query our sales based on groupings...
Weddings (Wedding Reception, Wedding Ceremony, Post Reception, Coin Shower) Corporate (Holiday Party, Company Picnic, Company Party, Convention) School (Prom, Homecoming, School Dance, Graduation) Other (everything else)
I have already set up 4 separate queries, one for each grouping, with a union query, and it works but it returns 4 rows and doesn't specify which row pertains to which query.
Can anyone suggest an alternate/easier way to do this or a fix for the union query problem?
I have a rather simple query that shows the number of layoffs in a given period and would like to know if I can have the query sum the numbers.
Company City Date Incident Laid-Off CompanyABC CityABC 5/3/2007 Mass Layoff 207 CompanyKLM CityKLM 5/5/2007 Mass Layoff 54 CompanyQRS CityQRS 5/7/2007 Plant Closing 436 CompanyXYZ CityXYZ 5/9/2007 Plant Closing 75
Is it possible to somehow display the total (772) underneath the "Laid-Off" column? Or create a separate column that only displays the "Laid-Off" total?
Or would it be easier to just build a report from the query and display laid off totals on the report?
(I apologize for the "table." I tried to import the query results as an image but couldn't get it to work.)
I have a DB that has lots of queries, I'm trying to find the percentage of trainees that are employed from the number of trainees in my database. For testing purposes, I have three trainees from NCN and two of those trainees are employed. Now, i made a query to find the total number of NCN-trainees employed which has three tables and seven fields (Fname, Lname, Group[NCN],Employee Status[full-time, part-time,un-employed],employer number, and employer). three records in total The other query I made is to find the total number NCN-Trainees. This query is based on the same three tables but only has 4 fields (Fname, Lname, group[NCN], and employee status) two records in total The trouble I'm have is which field to put the totals under.
On the attached jpg(s) you will see the query I'm working with. It's fairly simple except for a couple of things and those are the items I'm stuck on.
What I'm trying to do is get a representation of the amount of traffic that has come through our salescenters in the last week. Some centers had no traffic and others had multiple prospects. So when I look at the query for week 33 (this week) I would like to see all the centers even if they had zero traffic - the query should show zero.
If you look at Traffic_Query.jpg you'll see how the table is laid out. With the query I'm trying to show all of our centers for the current week even if no traffic was entered.
I may not be explaining it clearly so if you have any questions let me know.
Thanks, Chester Campbell Joseph Freed and Associates