Solved

Coiunting records & totaling hrs on Access table

Posted on 2011-09-12
9
261 Views
Last Modified: 2012-05-12
I have a Access table that lists the jobs that we have placed a bid on in the last year and the number of hours that we bid.  I need to count the number of jobs, count the number of jobs that we have been awarded (award date is filled in) and the total number of hours that we have bid on all the jobs.  How can i do this?
0
Comment
Question by:barnescs
  • 5
  • 4
9 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 36525238

something like this

select count(jobid), sum(iif([award date] is null,0,1),sum([hours])
from tableName
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 36525241
sorry missing ")"

something like this

select count(jobid), sum(iif([award date] is null,0,1)),sum([hours])
from tableName
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 36525248

something like this

select count(jobid) as TotalJob, sum(iif([award date] is null,0,1)) As TotalAwarded,sum([hours]) as TotalHours
from tableName
0
 

Author Comment

by:barnescs
ID: 36525358
instead of the select operation can i create a table so that i can generate a short report with just the totals on it?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:barnescs
ID: 36525417
This is the excel version of my table:
tbltotalspas.xlsx
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 36525689
why not upload a db with the table ...


<instead of the select operation can i create a table so that i can generate a short report with just the totals on it?>

when you made the select query working, just convert it into a make table query

select count([job#]) as TotalJobCount, sum(iif([date contract award] is null,0,1)) As TotalAwarded, sum([total hours bid]) as TotalHours
from tableName
0
 

Author Comment

by:barnescs
ID: 36525938
OK, here it is
bid-counts---hours.accdb
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 36525997
run query1,

 if that is what you want to see, you can change the select query into a make table query


bid-counts-hours.accdb
0
 

Author Comment

by:barnescs
ID: 36526020
That is the rough form of what i am looking for.  THANKS!!!!!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now