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

Create/update table from multiple queries

I'm building a report that has a count of cases for employees. I have
separate queries that count, OpenCases, NewCases, TotalCases, Etc. I would
like to put all those counts into a record for each EmpID then create a
report from that table.

Is there some online examples on now to update tables from queries?
Nov 13 '05 #1
2 3115
Dave,

That is the wrong approach! Count is a derived value from other data and
shouldn't be saved to a table; it should always be calculated on the fly. You
need a way to distinguish Open Cases from New Cases then you can create a
crosstab query that includes EmoID that will give you the count of open cases,
count of new cases and total cases. Each record from the crosstab query will
look like:

EmpID CountOfOpenCases CountOfNewCases TotalCases.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"DaveDiego" <Th************************************@usenet1.wi ntermute.cx> wrote
in message news:2m************@uni-berlin.de...
I'm building a report that has a count of cases for employees. I have
separate queries that count, OpenCases, NewCases, TotalCases, Etc. I would
like to put all those counts into a record for each EmpID then create a
report from that table.

Is there some online examples on now to update tables from queries?

Nov 13 '05 #2
PC Datasheet <no****@nospam.spam> wrote:
Dave, That is the wrong approach! Count is a derived value from other data and
shouldn't be saved to a table; it should always be calculated on the fly. You
need a way to distinguish Open Cases from New Cases then you can create a
crosstab query that includes EmoID that will give you the count of open cases,
count of new cases and total cases. Each record from the crosstab query will
look like: EmpID CountOfOpenCases CountOfNewCases TotalCases.


Thanks, I looked at Crosstabs for the first time. It looks like I still
need to look into what I can do with that. So I'm not sure if what i'm
trying to do with work with them.

The queries I'm running count cases based on dates. For instance, old
cases have close date as null and open date before the report criteria.
New cases is another query where open date is within the report critera.
Completed new cases have open and close dates within the report criteria,
etc, etc. In addition to the stats for Ethinicity, income levels, Age,
etc.

I did a report like this on a previous data base and ended up doing a
report with about 30+ subreports which ended up being very tedious and
looked like crap.

Nov 13 '05 #3

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

Similar topics

7
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a...
17
by: kalamos | last post by:
This statement fails update ded_temp a set a.balance = (select sum(b.ln_amt) from ded_temp b where a.cust_no = b.cust_no and a.ded_type_cd = b.ded_type_cd and a.chk_no = b.chk_no group by...
7
by: Wolfgang Kreuzer | last post by:
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields...
4
by: dp | last post by:
After looking and looking, it appears that Access ADPs graphic query designer won't display: update customer set = . from customer, where customer. = .; It comes up with the "Query...
2
by: anony | last post by:
Maybe this feature is already out there. I guess you could write triggers to do some of this. Often when designing a database I add a start_date and end_date column to the table. The start_date...
27
by: max | last post by:
Hello, I am a newbye, and I'm trying to write a simple application. I have five tables with three columns; all tables are identical; I need to change some data in the first table and let VB...
2
by: jrsonner | last post by:
I have multiple entries in one table that I need to update the entries in the current production table with, to revert that data back before a migration so I can migrate that data again. The...
0
bilibytes
by: bilibytes | last post by:
hi, i am trying to UPDATE multiple rows with mysql. I know how to do it with multiple queries but i think it would be less resource consuming generating mysql query code with php and update all...
4
by: hapnendad | last post by:
In the question statement below Field names are in and variables are in (). All fields referenced are in what I have named the ‘PAR’ Table. Using MS Access 2003, I am working on a project...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.