K
KHogwood-Thompson
Hi All,
I am going mad trying to extract the data from this query as the date
parameter does not seem to work!
The SQL is as follows:
SELECT [Job Transactions].[JOB REF], [Job Transactions].TRANSDATE,
Sum(-[VALUE]) AS SALES
FROM [Job Transactions]
WHERE ((([Job Transactions].TRANSDATE) Between [Start date] And [End date])
AND (([Job Transactions].CO)=2) AND (([Job Transactions].SOURCE)="I"))
GROUP BY [Job Transactions].[JOB REF], [Job Transactions].TRANSDATE;
The underlying query [Job Transactions] has the date field in the format of
General Date, the table that this query is based upon has the date as Text
format and so converts it using the following syntax:
TRANSDATE: IIf([JT_DATE]=" ",#01/01/1970#,FOUNDATIONDATE([JT_DATE]))
Running the query using the SQL above does not limit the record to those
between the date parameters. I have used >= and <= instead of the BETWEEN
command and it makes no difference.
Please can someone help??
I am going mad trying to extract the data from this query as the date
parameter does not seem to work!
The SQL is as follows:
SELECT [Job Transactions].[JOB REF], [Job Transactions].TRANSDATE,
Sum(-[VALUE]) AS SALES
FROM [Job Transactions]
WHERE ((([Job Transactions].TRANSDATE) Between [Start date] And [End date])
AND (([Job Transactions].CO)=2) AND (([Job Transactions].SOURCE)="I"))
GROUP BY [Job Transactions].[JOB REF], [Job Transactions].TRANSDATE;
The underlying query [Job Transactions] has the date field in the format of
General Date, the table that this query is based upon has the date as Text
format and so converts it using the following syntax:
TRANSDATE: IIf([JT_DATE]=" ",#01/01/1970#,FOUNDATIONDATE([JT_DATE]))
Running the query using the SQL above does not limit the record to those
between the date parameters. I have used >= and <= instead of the BETWEEN
command and it makes no difference.
Please can someone help??