My application has numersous tableadapters with single tables in them.
At times within a function I use a select case statement to referense the required tableadapter for further processing.
I have come across a problem that occurs if the tableadapter has no tables in it with data and thus an error occurs in my code.
I suspect that to avoid this I need to check the row count and exit if 0...no rocket science needed there!
But if all I am doing is referencing the tableadapter how do I access a given table in it?
I thought I could do something like:
But have found I cannot.
As I have only created tableadapters and tables and not any datasets I am confused as to how I achieve this?
Any help please?
Thanks
At times within a function I use a select case statement to referense the required tableadapter for further processing.
I have come across a problem that occurs if the tableadapter has no tables in it with data and thus an error occurs in my code.
I suspect that to avoid this I need to check the row count and exit if 0...no rocket science needed there!
But if all I am doing is referencing the tableadapter how do I access a given table in it?
I thought I could do something like:
VB.NET:
IF taTableAdpater.Table(0).Rows.Count = 0 THEN
But have found I cannot.
As I have only created tableadapters and tables and not any datasets I am confused as to how I achieve this?
Any help please?
Thanks