No records

Lanason

Registered User.
Local time
Today, 19:55
Joined
Sep 12, 2003
Messages
258
I'm doing a number of queries to get the number of records that meet the criteria in a certain table.

However if the number is zero then i get Null and the code bums out.

Any idea how to make the null as zero?
 
I'm doing a number of queries to get the number of records that meet the criteria in a certain table.

However if the number is zero then i get Null and the code bums out.

Any idea how to make the null as zero?

Use COUNT(*) to return the number of rows in a query. COUNT(*) should never return zero. It always returns a whole number greater than or equal to zero.
 

Users who are viewing this thread

Back
Top Bottom