First of all, I'm still really confused on using all these things. Now there's DataSets, DataReaders, DataTables, DataRows, etc. Its a lot harder than using a Recordset in ADO in VB 6, where you could just go
Do Until rs.EOF
myVariable = rs![Field1]
Loop
So here is what I got:
Do Until ds1.WHAT DO I PUT HERE?????
strNameOne = (mds.Tables("Rank".Rows(intCount).Item(0))
If strNameOne = strNameOnetxt Then
MsgBox("Yes"
Else
MsgBox("Nope"
End If
intCount = intCount + 1
Loop
mds is a DataSet.
I could loop until the intCount is a certain number. For he reason that I will always want to get a maximum of 10 rows' data. BUT I will not always have 10 rows. I might only have 2, so I will get an error.
There is no EOF. for DataSets. I tried Do Until ds1.HasErrors. That doesn't work either.
Do Until rs.EOF
myVariable = rs![Field1]
Loop
So here is what I got:
Do Until ds1.WHAT DO I PUT HERE?????
strNameOne = (mds.Tables("Rank".Rows(intCount).Item(0))
If strNameOne = strNameOnetxt Then
MsgBox("Yes"
Else
MsgBox("Nope"
End If
intCount = intCount + 1
Loop
mds is a DataSet.
I could loop until the intCount is a certain number. For he reason that I will always want to get a maximum of 10 rows' data. BUT I will not always have 10 rows. I might only have 2, so I will get an error.
There is no EOF. for DataSets. I tried Do Until ds1.HasErrors. That doesn't work either.