I've been getting this error when pulling data from a recordset. It is coming from a null entry and as a newbie to VB2008 I'm not sure how to get around this.
here is my code
lblShipping.Text = reader("CARRIERCODE")
the error:
Conversion from type 'DBNull' to type 'String' is not valid.
Basically what i'm attempting to accomplish is to see if there is anything in that field. If so put it into the text box if not leave it blank.




Reply With Quote