I have stepped through it, i never get into the this.oCompnay object. It bombs right away.
I have removed the ds in front of it, and it bombs.
I have tested the storeproc from with in the VS.IDE server manager and it returns the right results.
It also compiles fine, it is only at runtime.
Thanks!
>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