What I am trying to do is have 2 tables linked by an outer join and I want to find all vehilces from my first table that have no fuel records (my second table) with in the last 6 months. I can get what has been fueled and I can get what has never been fueled but as soon as I try to put the six month criteria on it, it doesn't work. I am using version 8.5 and have order v9.
Here ia my selection criteria
({DATA_ENTITIES_COH.ENT_SuspendYN} = "N"
and {DATA_STATISTICTRANSACTIONS_COH.STATTRANS_ReadingOn} >= dateadd('m',-6,currentdate()))
or ({DATA_ENTITIES_COH.ENT_SuspendYN} = "N"
and isnull({DATA_STATISTICTRANSACTIONS_COH.STATTRANS_ReadingOn}))
hope someone can help.
Jan