Basically, what is the best way to do this?
Here's my goal... I have a table where every Item is a Boolean.
In each iteration I need to get the Column name and whether it is true or not. Here is what I tried:
'This does not work.
Basically, I am building an Update string to go to an Access/Jet database.
Here's my goal... I have a table where every Item is a Boolean.
In each iteration I need to get the Column name and whether it is true or not. Here is what I tried:
Code:
Dim myColumn As Data.DataColumn
For Each myColumn In objRow.ItemArray
If myColumn = "True" Then
Code:
countX += 1
tmpStr.Append(myColumn.ColumnName & " = YES")
Else
tmpStr.Append(myColumn.ColumnName & " = NO")
End If
Next
Basically, I am building an Update string to go to an Access/Jet database.