RE: report that includes multi tables
- From: "still learning" <stilllearning@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 08:49:03 -0700
Thanks for replying.
There is separate tables for the years because the autonumber is used to
create a new file #. The column before the new file # is the year ie 05 for
2005. When the report is printed it prints 05 - *file #*. In order to use
the auto number and start back at 1 when the next year started a new table
was created. I want to combine the tables in the query so I can sort in my
report by last name and not have to go through each report by year, which is
what they have been doing here for several years. I know there is an easier
way using what they already have.
The next question I have is how to do a UNION instead of a JOIN. When I was
reading through the instructions and asking questions the UNION hadn't come
up so if you could please instruct me I would greatly appreciate it.
"Pat Hartman" wrote:
> For starters you really shouldn't have a separate table for each year. Your
> application would be simpler if everything were in one table and you used
> criteria to select what you wanted.
>
> In any event, when you want to merge multiple lists, you need to UNION them
> which is a different operation from JOIN. Union basically tacks one list on
> to the end of another. It's like adding the Stratford white pages to the end
> of the Bridgeport white pages. You couldn't join the two lists because
> different people live in each town.
>
> "still learning" wrote:
>
> > I need help. I have been using a single table in queries, filters, and
> > reports. No problem. I now want to join several tables to generate one
> > alphabetized list. I tried joining just two tables in the query to see if
> > I'm doing this right and the output is only giving me data from one table not
> > both. I can't figure out what I'm doing wrong. The diagram shows joined in
> > the desin view.
> >
> > This is my ultimate desire: I have 6 tables by year 1999-2005. The file #
> > is auto generated. The tables include client info (name, address, phone,
> > account type, county code #, and misc) The imorportant key is the county
> > code #. I want to produce a final report that is alphabetized by client last
> > name and includes: file #, name, acct. type, and county code #.
> >
> > Can anyone help me please. Thanks
.
- Follow-Ups:
- RE: report that includes multi tables
- From: Pat Hartman
- RE: report that includes multi tables
- References:
- report that includes multi tables
- From: still learning
- RE: report that includes multi tables
- From: Pat Hartman
- report that includes multi tables
- Prev by Date: Re: Is Access good for a business with 3,000 customers
- Next by Date: Re: report that includes multi tables
- Previous by thread: RE: report that includes multi tables
- Next by thread: RE: report that includes multi tables
- Index(es):
Relevant Pages
|