?
Solved

how to change main table in database

Posted on 2013-02-03
4
Medium Priority
?
198 Views
Last Modified: 2013-02-04
Hello-
am attaching sample of database:
Just the table-(table1)-
at present I sum [time spent] and divide by count of records-and I have queries and reports built-

Now management want me to still sum all of the [time spent]  - but when I divide by count of records - I need to not count pending completion records - (and there are a couple hundred)

So in this sample database I have attached- there are 11 records - but 3 are pending completion- so I need to divide sum of time spent by 8-

do not have idea of how to go about this-
my original thought is I would like to be able to change the table-outside of the database and then import it back in and not change other parts of database. but am confused.

any ideas?
Thank you
Database1.accdb
0
Comment
Question by:davetough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:als315
ID: 38850118
Can you show expected result? We should sum time of all records or only records without "Pending Completion"?
You can get 0.2875 Or 0.38125. What is expected?
0
 

Author Comment

by:davetough
ID: 38850712
.38125
sum time of all records
and divide by number of records ( excluding pending completion) -
0
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 38851555
Look at sample. You need 2 queries (qry1 and qry2). They, of course, may be combined into one (qryAllinOneAvg)
Database1.accdb
0
 

Author Closing Comment

by:davetough
ID: 38851605
great - thank you
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

650 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