Yes I think you are right, so I need to check the same for nulls in the other fields as well. so my entire query looks like this:
iQuery1 = "INSERT INTO HD_GL_ACCT_BALANCE ( [DATE], GL_ACCOUNT_NO, GL_BALANCE ) "
iQuery2 = "SELECT distinct #" & iDate & "# AS [DATE]...