Jimbo99999
asked on
VB.Net - DataTable One Row
Good Day Experts!
I have a DataTable only contains 1 record. In the past, I have only used for each loop to process the DataTable.
For Each sqlRS In sqlRStbl.Rows
Next
How can I just get the row from the DataTable?
Thanks,
jimbo99999
I have a DataTable only contains 1 record. In the past, I have only used for each loop to process the DataTable.
For Each sqlRS In sqlRStbl.Rows
Next
How can I just get the row from the DataTable?
Thanks,
jimbo99999
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This all stems from when I was using a DataReader that I couldn't close before calling a subroutine. I passed the subroutine the connection string used by the DataReader and was trying to execute a DataReader on that same connection and was getting an error. So, I converted the DataReader to a DataTable in the calling routine to alleviate the problem.
Thanks for the help,
jimbo99999