Hi All,
I'd like to run a query on records with both open dates and close dates. (I would appreciate any tips you could give me!!!!)
The query should spit back all the cases that were “open” during certain time periods.
For example, the query would show cases open during May '03.
1) The “open date” would be AFTER 4/30/03 and would be BEFORE 6/1.
2) The “close date” for all the cases would be AFTER 6/1 (OR blank, since some cases would have no close dates at all.)
I already have some of the query set up.
Under the field for Open Date, I wrote <#6/01/03#.
Under the field for Close Date, I wrote >#6/01/03#.
So, this gives me all the cases that were both opened before 6/1/03, and closed after 6/1/03. That’s part of what I want.
But I need the query to expand. My query doesn’t spit back cases with a) open date was before 6/1 AND b) no close date at all.
How do I tell Access that I want the criterion for CloseDate to be “after 6/1 OR does not exist”? I tried entering “CloseDate = 0” as a criteria, but that didn’t work.
If you’ve read through all of this, thanks! If you have any tips, thanks very much!!!
Sincerely,
sarajini
I'd like to run a query on records with both open dates and close dates. (I would appreciate any tips you could give me!!!!)
The query should spit back all the cases that were “open” during certain time periods.
For example, the query would show cases open during May '03.
1) The “open date” would be AFTER 4/30/03 and would be BEFORE 6/1.
2) The “close date” for all the cases would be AFTER 6/1 (OR blank, since some cases would have no close dates at all.)
I already have some of the query set up.
Under the field for Open Date, I wrote <#6/01/03#.
Under the field for Close Date, I wrote >#6/01/03#.
So, this gives me all the cases that were both opened before 6/1/03, and closed after 6/1/03. That’s part of what I want.
But I need the query to expand. My query doesn’t spit back cases with a) open date was before 6/1 AND b) no close date at all.
How do I tell Access that I want the criterion for CloseDate to be “after 6/1 OR does not exist”? I tried entering “CloseDate = 0” as a criteria, but that didn’t work.
If you’ve read through all of this, thanks! If you have any tips, thanks very much!!!
Sincerely,
sarajini