Solved

how to change main table in database

Posted on 2013-02-03
4
192 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
  • 2
  • 2
4 Comments
 
LVL 39

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 39

Accepted Solution

by:
als315 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views 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 Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

920 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

15 Experts available now in Live!

Get 1:1 Help Now