If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Count null fields
I have a form that I would like to add a text box to that will count how
many null entries there are in a given field I don't know how to enter the text. =count(*) will count all the records but how would I count all the null entries in a field called 'Approved' Thanks in advance for any help Steve Goodrich |
#2
|
|||
|
|||
Count null fields
=Sum(IIf(IsNull([Approved]), 1, 0)
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Steve Goodrich" wrote in message . .. I have a form that I would like to add a text box to that will count how many null entries there are in a given field I don't know how to enter the text. =count(*) will count all the records but how would I count all the null entries in a field called 'Approved' Thanks in advance for any help Steve Goodrich |
#3
|
|||
|
|||
Count null fields
Hi Steve,
Or, to make it slightly shorter, you can take advantage of the fact that true is represented by a -1 and use: =-Sum(IsNull([Approved])) or =Sum(-IsNull([Approved])) Clifford Bass "Douglas J. Steele" wrote: =Sum(IIf(IsNull([Approved]), 1, 0) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) |
#4
|
|||
|
|||
Count null fields
Thanks Guys, Works perfectly.
"Steve Goodrich" wrote in message . .. I have a form that I would like to add a text box to that will count how many null entries there are in a given field I don't know how to enter the text. =count(*) will count all the records but how would I count all the null entries in a field called 'Approved' Thanks in advance for any help Steve Goodrich |
#5
|
|||
|
|||
Count null fields
You are welcome Steve.
Clifford Bass "Steve Goodrich" wrote: Thanks Guys, Works perfectly. |
Thread Tools | |
Display Modes | |
|
|