I have a query that i'm trying to make.
Basically, what needs to happen is this query needs to look for all customers that have certain machines or equipment types, and have purchased them in between 2 dates.
The problem that i'm coming to is that the criteria for which machines to compare the customers to are in a table, the equipment types criteria is in another table and the dates are in another.
Can anyone help?
I would want to show any customers(tblComp) that have any of the machines or any of the equipment type and purchased between the dates
the tables look like this
David Kuhn
------------------
Basically, what needs to happen is this query needs to look for all customers that have certain machines or equipment types, and have purchased them in between 2 dates.
The problem that i'm coming to is that the criteria for which machines to compare the customers to are in a table, the equipment types criteria is in another table and the dates are in another.
Can anyone help?
I would want to show any customers(tblComp) that have any of the machines or any of the equipment type and purchased between the dates
the tables look like this
Code:
tblMachineCrit
********************
* MachCode *
*------------------*
* CROLL2 *
* LATHE3 *
* MILL5 *
********************
tblTypeEquip
********************
* EquipType *
*------------------*
* END MILL *
********************
tblDates
************************
* StartDate | EndDate *
* 5/10/05 | 10/5/06 *
************************
David Kuhn
------------------