Hi All:
I'm new to this forum and am hoping I can get some help on this issue.
I am making a query on customer orders. We use header and detail tables to store order data in.
I have 4 tables I need to query on. We have current open orders tables (header table and detail table) and completed orders tables (header and detail table). The key field in each of the 4 tables are order number. Each set of tables are joined by this field.
When an order is placed, the data is stored in the current order header table for certain information such as customer number, address, date entered, total order value, etc... The line item detail of the order such as the material, description, item cost , etc. is stored in the current order detail table.
As the order is built and items from orders are shipped, the line items are deleted from the current open order Line item table and stored in the order line item history table. when the order is totally complete, the header table entry is deleted and stored in the header history table.
My issue is being able to query both sets of tables for data on orders based on date range selection criteria.
Does anyone have a way to be able to do this?
Regards.
Kevin