A
aaearhart
Hello.
Here is my current query*:
SELECT [T-Jobs].JobName & "-" & [T-Jobs].JobNumber AS FullJob,
[T-Jobs].JobType
FROM [T-Jobs]
WHERE ((([T-Jobs].EndDate)>Now()-360)
AND IS NOT (([T-Jobs].JobType)="Show" And ([T-Jobs].Status)="Complete"))
ORDER BY [T-Jobs].JobType, [T-Jobs].JobName;
I realise the "AND IS NOT" is not correct. I've simply got it in there for
illustrative purposes.
What i need to do is this:
Return the JobName, JobNumber and JobType from tbl T-Jobs.
I need to return all items that have ended ([EndDate]) within the approx.
past year (>=Now()-360).
However, I want to exclude any records that are Completed
([Status]="Complete") Shows ([JobType]="Show").
What do I put in place of the "AND IS NOT?"
Thanks, in advance!
/amelia
*I'm already aware that using "-" in my naming was a poor choice, but I'm
stuck with it.
Here is my current query*:
SELECT [T-Jobs].JobName & "-" & [T-Jobs].JobNumber AS FullJob,
[T-Jobs].JobType
FROM [T-Jobs]
WHERE ((([T-Jobs].EndDate)>Now()-360)
AND IS NOT (([T-Jobs].JobType)="Show" And ([T-Jobs].Status)="Complete"))
ORDER BY [T-Jobs].JobType, [T-Jobs].JobName;
I realise the "AND IS NOT" is not correct. I've simply got it in there for
illustrative purposes.
What i need to do is this:
Return the JobName, JobNumber and JobType from tbl T-Jobs.
I need to return all items that have ended ([EndDate]) within the approx.
past year (>=Now()-360).
However, I want to exclude any records that are Completed
([Status]="Complete") Shows ([JobType]="Show").
What do I put in place of the "AND IS NOT?"
Thanks, in advance!
/amelia
*I'm already aware that using "-" in my naming was a poor choice, but I'm
stuck with it.