Quite awhile ago I posted a question on how to get data on clients open within 2002. They may have been opened before 2002 and they may have been closed after 2002. I got a response, modified it and it seemed to be working ok. I have one query where it doesn't pull the right people. In the query I have the admission date in a field and the criteria:
>=[First Date of time period- mm/dd/yy] Or Is Null
Then there is the close date with the criteria:
<=[Last Date of time period- mm/dd/yy] Or Is Null
The dates I'm using are between 1/1/2002 and 12/31/2002. However, in one query I'm getting people who may have, for example been admitted and closed in 2001. They were not open at any time during 2002. I don't understand what's going since it seems to work fine in all my other queries. I would really appreciate some help with this. I'm weak in SQL by the way so use expressions. Thanks as always.
>=[First Date of time period- mm/dd/yy] Or Is Null
Then there is the close date with the criteria:
<=[Last Date of time period- mm/dd/yy] Or Is Null
The dates I'm using are between 1/1/2002 and 12/31/2002. However, in one query I'm getting people who may have, for example been admitted and closed in 2001. They were not open at any time during 2002. I don't understand what's going since it seems to work fine in all my other queries. I would really appreciate some help with this. I'm weak in SQL by the way so use expressions. Thanks as always.