Using CR9, ODBC/SQL, with data from 3 tables: Workorder, Labor Transactions, and Materials Transactions. Primary table is the Workorder table, with full outer join links on the indexed workorder number field from the workorder table to both the Lab.Trans. and Mat.Trans. tables.
I'm trying to pull records for all labor transactions and materials transactions that occur between the start date and end date parameters chosen by the user ({?Enter StartDate}, {?Enter EndDate}). These dates should be based on the date fields in the Lab.Trans. and Mat.Trans. tables. However, it doesn't seem to be selecting materials transaction records unless there is also a labor transaction with the same workorder #.
Here is the record selection formula I'm using:
({labtrans.labordate} >= {?Enter Start Date} or {mattrans.transdate} >= {?Enter Start Date}) and
({labtrans.labordate} <= {?Enter End Date} or {mattrans.transdate} <= {?Enter End Date})
Any suggestions? Thanks...
I'm trying to pull records for all labor transactions and materials transactions that occur between the start date and end date parameters chosen by the user ({?Enter StartDate}, {?Enter EndDate}). These dates should be based on the date fields in the Lab.Trans. and Mat.Trans. tables. However, it doesn't seem to be selecting materials transaction records unless there is also a labor transaction with the same workorder #.
Here is the record selection formula I'm using:
({labtrans.labordate} >= {?Enter Start Date} or {mattrans.transdate} >= {?Enter Start Date}) and
({labtrans.labordate} <= {?Enter End Date} or {mattrans.transdate} <= {?Enter End Date})
Any suggestions? Thanks...