K
KFox via AccessMonster.com
Using a query, I'm trying to count the number of records in a table that are
not null. It looks as though there's actually a space in the fields, so I've
tried all these combinations to no avail. The values in the field are text,
but it doesn't matter to me what text it is, I just need to know how many
fields are "populated".
QS: Sum(IIf(Not IsNull([QS Code]),1,0))
QS: Sum(IIf(Not IsNull([QS Code] Or Not " "),1,0))
QS: Sum(IIf(Nz([QS Code],0),1,0))
QS: Count(IIf([QS Code]=" " Or [QS Code] Is Not Null,1,0))
Thanks in advance!
Kellie
not null. It looks as though there's actually a space in the fields, so I've
tried all these combinations to no avail. The values in the field are text,
but it doesn't matter to me what text it is, I just need to know how many
fields are "populated".
QS: Sum(IIf(Not IsNull([QS Code]),1,0))
QS: Sum(IIf(Not IsNull([QS Code] Or Not " "),1,0))
QS: Sum(IIf(Nz([QS Code],0),1,0))
QS: Count(IIf([QS Code]=" " Or [QS Code] Is Not Null,1,0))
Thanks in advance!
Kellie