Re: Pulling data from multiple tables of same structure

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Good luck!

I'll point out that there are any number of databases (Access and others)
that keep information separated, but don't have to use separate databases to
do that.

At my day job, I've written a contract management system that holds over
1,000 contracts, keeping each one's information separate, but still using
only a single database.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"csiqa" <jburke@xxxxxxxxxxxxxxx> wrote in message
news:1154119661.780285.32650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Well, the reason that I am working with three tables that are identical
is because they are tables that I am linked to. I am working in an
office that has three databases because we have three contracts. The
data for each contract must be maintained in a separate database to
prevent cross contamination of data; however, the structure of the
three databases is the same.

So, if I want to pull an open inventory report, I have to pull one for
contract A, contract B, and contract C. However, our supervisors don't
think in terms of three contracts but in terms of the team that they
manage. Their team members could have work from any or all of the
three contracts. So, if I want a report of workload for Susie's team,
I have to three queries. However, Susie would like to have all of this
on one report instead of three.

I will try the union queries. Wish me luck!

Jeff Boyce wrote:
Are you saying that you have three roughly identical tables, each with
different data? If so, why? If you want to make the best use of Access'
features and functions, your data needs to be well-normalized... and
three
"similarly structured" tables may not be.

If you absolutely must work with the three tables as is, take a look at
Access HELP on the topic of UNION queries. The basic idea is that you
create a separate query against each table, then "stitch" them together
to
show the union of the results.

Regards

Jeff Boyce
Microsoft Office/Access MVP


<jburke@xxxxxxxxxxxxxxx> wrote in message
news:1154106709.836574.65190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have three tables that are similarly structured. I need to pull data
from all three tables, and create a report that details those record
that meet selected criteria.

I know that I could create one make table query and two append queries,
with a resulting table containing the appropriate data. However, I
have multiple users in this database, and don't need to have three
people trying to run the same make table query at the same time. Also,
I'm sure that there is an easier way.

How do I create one query that pulls records from three data sources
that all have the same criteria? Can it be done?

Thanks in advance for your help!

JBurke




.



Relevant Pages

  • Re: Pulling data from multiple tables of same structure
    ... the SQL server. ... I'll point out that there are any number of databases ... that keep information separated, but don't have to use separate databases to ... I've written a contract management system that holds over ...
    (microsoft.public.access.queries)
  • Re: Struggling w/ the IIF function
    ... I'm starting to wonder about your database structure. ... Group Numbers and Contract Names the same table or two ... separate things? ... >I have it entered on a query. ...
    (microsoft.public.access.gettingstarted)
  • database links
    ... Can someone show me how I might be able to connect to two separate ... and create a query from the two? ... I understand in Oracle this is ... that is present in two separate files on two seperat databases. ...
    (comp.lang.php)
  • RE: Secure Network Design (DMZ, LAN, etc)
    ... webservers acting as routers so that they can get to your databases on ... then why have a separate network? ... interface on your internal firewall which protects the innermost network ... switch. ...
    (Security-Basics)
  • Re: SQL Server Theory - Multiple Identical Databases
    ... Have you considered using owner to keep objects separate. ... when you log in as an 'HSBC' user...you have security to only ... > may actually need separate databases. ... I am NOT a sql server expert. ...
    (microsoft.public.sqlserver.server)