Hi Kevin,
I would set a breakpoint, run it in debug and check in the Locals or Watch window to see if your objects are instantiated, in scope etc.
Bill
>When I run the code below, I get "Object reference not set to an instance of an object." on the line with the NewRow() call.
>
>What am I doing wrong here?
>
>
>DataRow oDataRow;
>
>oDataRow = oDataSet.Tables["mnuTabs"].NewRow();
>oDataRow["ProductKey"] = 1;
>oDataRow["Sequence"] = 100;
>oDataRow["TabCaption"] = "Stuff";
>
>oDataSet.Tables["mnuTabs"].Rows.Add(oDataRow);
>
>
>Thanks
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.