From what u have posted here it seems that ur recordset is null. Or u might be passing an null reference to one of the overloads of GetFieldValue() method here. Another mistake that is commonly made with this method is, passing of the wrong parameters altogether. I mean, make sure you are passing the correct name or index for the field. Some times the index and the data types won't match. Make sure to put the database connection open and close code in try...catch block.