Re: Multiple table select query remove duplicates
- From: "Steve Perrins" <support@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 07:06:19 +0100
Steve,
Thanks for the reply.
As the results are to be displayed on a form I'll use a listbox and populate
it using VBA code. That way I'll have better control on what is displayed.
Regards
Steve Perrins
"[MVP] S.Clark" <steve.clark_NOSPAM@xxxxxxxxxx> wrote in message
news:%23TuPZgxaGHA.1352@xxxxxxxxxxxxxxxxxxxxxxx
You can use the HideDuplicates property in a report. But nothing in a
query.
--
Steve Clark, Access MVP
FMS, Inc
http://www.fmsinc.com/consulting
Professional Access Database Repair
*FREE* Access Tips: http://www.fmsinc.com/free/tips.html
"Steve Perrins" <support@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23MaaKZuaGHA.3376@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have two tables exp_recs and inc_recs both with the following fields :-
ID - Primary key
ac_gross
ac_date
ac_PROJID
exp_recs has the following records
1 50.20
2 64.67
3 99.33
inc_recs has the following records
1 60.50
2 99.00
I run the following query:-
SELECT exp_recs.ac_gross AS exp_gross, inc_recs.ac_gross AS inc_gross
FROM exp_recs, inc_recs
And the following is produced
ac_gross inc_gross
50.20 60.50
50.20 99.00
64.67 60.50
64.67 99.00
99.33 60.50
99.33 99.00
How would I code my query to produce the following
ac_date ac_gross inc_gross
01/01/2006 50.20
02/01/2006 60.50
08/01/2006 64.67
10/01/2006 99.00
20/01/2006 99.33
Thanks in advance
Steve.
.
- References:
- Multiple table select query remove duplicates
- From: Steve Perrins
- Re: Multiple table select query remove duplicates
- From: [MVP] S.Clark
- Multiple table select query remove duplicates
- Prev by Date: Re: How do I copy a query for each record in a table
- Next by Date: Re: Using Not Like
- Previous by thread: Re: Multiple table select query remove duplicates
- Next by thread: RE: Issues with Update query PLEASE HELP!
- Index(es):
Relevant Pages
|
|