It's getting late and I can't get the syntax right on this. I have a dataset defined in the IDE called ReportData. It has a single table called dtReport. I'd like to create a variable that references the table directly.
I have:
The problem is that tbThisReportData does not point to the table in dsThisReportData. For now I've worked around it by using the fully qualified name of the table of dsThisReportData.Tables("dtReport") but it would be nicer to be able to have the reference to the table working.
Can anyone see what I've got wrong here?
Thanks,
Bernie
I have:
VB.NET:
Dim dsThisReportData As ReportData
Dim tbThisReportData As DataTable
VB.NET:
' instantiate the dataset ...
dsThisReportData = New ReportData
' create referenced to the table in the dataset ...
tbThisReportData = dsThisReportData.Tables("dtReport")
The problem is that tbThisReportData does not point to the table in dsThisReportData. For now I've worked around it by using the fully qualified name of the table of dsThisReportData.Tables("dtReport") but it would be nicer to be able to have the reference to the table working.
Can anyone see what I've got wrong here?
Thanks,
Bernie