this is Shakti, i work as Software Programmer.
Your query can be easily solved.
You dont have to define a nullable variable.
Just define a variable of ur required type, in this case integer.
the code goes like this (the code has been written in C#, u can transform it to VB
i=0;// whatever the value u want to pass for null database values.
hope u find it helpful.
reply ur comments.