Hi, Shawn,
Generally, that error means that you're trying to refer to an object that hasn't been instantiated.
I can't tell from the code if the error refers to the dataset or the object reference 'oCompany'. Maybe the dataset has a null reference because the stored proc errored out...or maybe oCompany isn't set.
If you step through the code one line at a time and set a watch on those two things, that might help.
Kevin