I have a project database that managers used to keep track of their projects. One aspect of each projects record is the resource (people) who works on the project. I'm trying to pull up a list of all the projects that do not have anything listed in their 'Resource' field. The table is called [Project Information].
My problem is that my DCount() function returns 0 (zero) when it's called this way.
That cannot be ... since this statement returns the correct number of projects (total projects - Null Resource Projects):
The 'Resource' field is text and I've tried almost everthing to get me the records that have no Resources listed. I've tried setting crit to:
... but nothing works, I keep getting a value of zero returned. This is very frustrating seeing as how I can pull out all the non-NULL values, but not the null ones. Maybe I'm missing something. Any help or suggestions anyone could offer would be greatly appreciated. (^_^). Thnx!
-Jedi420
A man who has risked his life knows that careers are worthless, and a man who will not risk his career has a worthless life.
My problem is that my DCount() function returns 0 (zero) when it's called this way.
Code:
Dim crit as String
crit = "[Resource] is NULL"
For i = 1 To DCount("Resource", "[Project Information]", crit)
'Do stuff
Next i
That cannot be ... since this statement returns the correct number of projects (total projects - Null Resource Projects):
Code:
Dim crit as String
crit = "[Resource] <> NULL"
For i = 1 To DCount("Resource", "[Project Information]", crit)
'Do stuff
Next i
The 'Resource' field is text and I've tried almost everthing to get me the records that have no Resources listed. I've tried setting crit to:
Code:
crit = "[Resource] = ''" OR
crit = "[Resource] = NULL"
... but nothing works, I keep getting a value of zero returned. This is very frustrating seeing as how I can pull out all the non-NULL values, but not the null ones. Maybe I'm missing something. Any help or suggestions anyone could offer would be greatly appreciated. (^_^). Thnx!
-Jedi420
A man who has risked his life knows that careers are worthless, and a man who will not risk his career has a worthless life.