Hi all,

I got 2 statement, logically it should be same, but the result is different.

VB Code:
  1. Select Case rs.fields(7)
  2.   Case IsNull(rs.fields(7))
  3.       itmx.subitems(7) = ""
  4.   Case Else
  5.       itmx.listsubitems.Add , , "", 1
  6. End Select


VB Code:
  1. If IsNull(rs.fields(7)) Then
  2.     itmx.subitems(7) = ""
  3. Else
  4.     itmx.listsubitems.Add , , "", 1
  5. End If

Actually i need to detect the record if the record in database is null then it would not display a reporticon else it will display the report Icon. By using the if else statement the reporticon display follow record. However, if i used case statement, all the record displaying reporticon regardless the record is null or not !