P
PizzaBoy
Hello Group,
I have a table with [customer], [address], and [ID] which is the primary
key. I have a second table linked one to many with the main table by [ID]
and has the fields: [rental unit], [rental date]. I am trying to create a
query which will return the results for customers who have stayed in any
unit for a specific date. The records would have to be compared among
themselves for each primary key. See example
table1![ID]=123 table1![customer]=john smith
table2![id]=123 table2![rental date]=1/1/05
table2![id]=123 table2![rental date]=2/5/03
table2![id]=123 table2![rental date]=5/3/04
I would like the query to return the records where a customer (in this
case-john smith) stayed in a rental before 2/1/05 and after 1/1/04. I only
want the name and address to appear once rather than each time there is a
match in the second table-this way I can create a make table query which
will can be used for a mailing list.
Thank you.
I have a table with [customer], [address], and [ID] which is the primary
key. I have a second table linked one to many with the main table by [ID]
and has the fields: [rental unit], [rental date]. I am trying to create a
query which will return the results for customers who have stayed in any
unit for a specific date. The records would have to be compared among
themselves for each primary key. See example
table1![ID]=123 table1![customer]=john smith
table2![id]=123 table2![rental date]=1/1/05
table2![id]=123 table2![rental date]=2/5/03
table2![id]=123 table2![rental date]=5/3/04
I would like the query to return the records where a customer (in this
case-john smith) stayed in a rental before 2/1/05 and after 1/1/04. I only
want the name and address to appear once rather than each time there is a
match in the second table-this way I can create a make table query which
will can be used for a mailing list.
Thank you.