aziz rasul
Active member
- Local time
- Today, 20:54
- Joined
- Jun 26, 2000
- Messages
- 1,935
I am trying to use the Count function in a select query (without having to use the Totals toolbar button).
I have the following table as an example: -
Year Genre
1923 comedy
1923 comedy
1925 war
1927
1925 comedy
1921
1924 comedy
1920 drama
I am trying to count the number of records that have a value in the Genre field. When using an expression like
Expr1: Count("Genre") I get the value of 8. I expected to get the value of 6 because two of the records had Null values in the [Genre] field. According to online help, the Count function DOES NOT COUNT NULL VALUES?
Hence what does the online help for Count mean when it says
"The Count function doesn't count records that have Null fields unless expr is the asterisk (*) wildcard character."
Any ideas, anyone.
I have the following table as an example: -
Year Genre
1923 comedy
1923 comedy
1925 war
1927
1925 comedy
1921
1924 comedy
1920 drama
I am trying to count the number of records that have a value in the Genre field. When using an expression like
Expr1: Count("Genre") I get the value of 8. I expected to get the value of 6 because two of the records had Null values in the [Genre] field. According to online help, the Count function DOES NOT COUNT NULL VALUES?
Hence what does the online help for Count mean when it says
"The Count function doesn't count records that have Null fields unless expr is the asterisk (*) wildcard character."
Any ideas, anyone.
Last edited: