>>>This works in C#.
>>>
>>>
>>>string TableName = DS.Tables[0].TableName;
>>>
>>>
>>>
>>>Dim Table As String
>>>Table = DS.Tables[0].TableName
>>>
>>>
>>>In VB I get a compilation error "Value of type 'System.Data.DataTableCollection' cannot be converted to 'String'"
>>>
>>>How do I get the name of a table off of a dataset?
>>
>>What is the data type of the TableName property?
>
>As far as I can see, it's string.
Check Chris' answer. I think he nailed it.