View Single Post
  #2 (permalink)  
Old 03-10-2008, 06:02 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 3,325
Default

You can use IsNull to first check if the value is null.
Code:
If IsNull(Table1.Cell(Table1.ColName(k),0)) Then myVar = 0 else myVar = Table1.Cell(Table1.ColName(k),0)
Reply With Quote