Question : SQL Percentage error message

The code below shows me the percentage of numbers in the table. The problem is that when there is no data for a certain day, it displays an error message:
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'CDbl'

How could I prevent this error and have displayed 0% instead?
Thank you.
1:
2:
3:
4:
sqlCount.CommandText = "SELECT 100.0*Sum(IIF(Camera = 'Yes',1,0))/Count(*) AS PercentageNo FROM Pushback_Table WHERE MyDate like '%"& (Date()) & "%'"
set objRs = sqlCount.Execute
%>
<%= "" & Fix(CDbl(objRs("PercentageNo"))+0.5) & "%" %>

Answer : SQL Percentage error message

When you go through the ICEW and get to the Web Server Certificate dialog, you will have 3 choices:

Create.....
Use....
Do not change....

If Do not change.....is ticked and outlined, then you have a certificate installed.

If you create a new one, then use your DNS A record name for the certificate, as in remote.abccompany.com.

To actually view your certificate, open up IIS>Select your server>Right Click on Default Web Site>Properties>Directory Security>View Certificate. If you do not have a certificate, you can create one here. The same cert will be used for all the sites below the default web site as well.

Regards.
Random Solutions  
 
programming4us programming4us