H
Heath P. Dillon
Hi,
I have an application that selects data from a SQL table and stores it in a
dataset. The problem I have is that my dataset can often contain some cols,
and other times not. (Its weird, but its the way the data manipulation
works)
For example in the code below, I get an error as the column "description"
does not exist in the table "in".
What I want to be able to do, is some how determine if the table contains
that col, and if it does then get the value, if not skip it.
It tried 'if qdrow("description") is nothing, but that still looks for the
col "description".
ODBCDataAdapterInboundQuery.Fill(dsInQueue, "In")
For Each Qdrow In dsInQueue.Tables("In").Rows
ABC = Qdrow("description")
Next
I have an application that selects data from a SQL table and stores it in a
dataset. The problem I have is that my dataset can often contain some cols,
and other times not. (Its weird, but its the way the data manipulation
works)
For example in the code below, I get an error as the column "description"
does not exist in the table "in".
What I want to be able to do, is some how determine if the table contains
that col, and if it does then get the value, if not skip it.
It tried 'if qdrow("description") is nothing, but that still looks for the
col "description".
ODBCDataAdapterInboundQuery.Fill(dsInQueue, "In")
For Each Qdrow In dsInQueue.Tables("In").Rows
ABC = Qdrow("description")
Next