Populate from a Table..?

  • Thread starter Thread starter Kent Johnson
  • Start date Start date
K

Kent Johnson

Hi all,

I'm trying to give 180 sessionvariables a value from a table.
I have tried:

Dim MyObj As Object,intCnt As Integer, intTest As Integer
For intCnt = 0 To 180
MyObj = myDS.Tables(0).Rows(intCnt).Item("myField")
intTest = MyObj
Session(intCnt.ToString) = intTest
Next

What have I missed?

/Kent J.
 
You missed .Value:

Session(intCnt.ToString) = myDS.Tables(0).Rows
(intCnt).Item("myField").Value
 
Back
Top