I have a column_a with value, but occasionally it is empty (i.e. NULL), I want to use SQL (Microsoft Access 2003) to access this column and return the column_a value, but it the field does not have a value, I want to pad it with a '0'. The code that I am running is:
SQL_string = "SELECT ID, (IF IsNull(column_a) THEN 0, ELSE column_a END IF) ... FROM everything"
How can I do it properly?