J
jason
Thanks for looking.
code below.
oRS.Open "Select * from tblResults", CN, adOpenDynamic,
adLockOptimistic
Dim nRows, nColumns, Counter1, Counter2
Counter2 = 0
Counter1 = 1
Do Until Err.Number <> 0
Counter1 = vResults(1, Counter2)
'MsgBox oRS.Fields(Counter2).Name & " " & vResults(1, Counter2)
On Error GoTo A
Counter2 = Counter2 + 1
Loop
A:
For nRows = 0 To UBound(vResults, 1)
oRS.AddNew
For i = 0 To Counter2
oRS.Fields(i).Value = vResults(nRows, i)
Next i
oRS.Update
Next nRows
code below.
oRS.Open "Select * from tblResults", CN, adOpenDynamic,
adLockOptimistic
Dim nRows, nColumns, Counter1, Counter2
Counter2 = 0
Counter1 = 1
Do Until Err.Number <> 0
Counter1 = vResults(1, Counter2)
'MsgBox oRS.Fields(Counter2).Name & " " & vResults(1, Counter2)
On Error GoTo A
Counter2 = Counter2 + 1
Loop
A:
For nRows = 0 To UBound(vResults, 1)
oRS.AddNew
For i = 0 To Counter2
oRS.Fields(i).Value = vResults(nRows, i)
Next i
oRS.Update
Next nRows