met12
June 9th, 2004, 09:55 PM
Hi,
I'm trying to index down through the table datainput and pull the Description out of each record. Count1 is the total number of records in the table, but I keep pulling the Description from the same record each time. It is not indexing. Any ideas would be much appreciated.
Thanks,
met12
For K = 1 To Count1
Set dbs = OpenDatabase("c:\vb\invenVB.mdb")
'Set rst = dbs.OpenRecordset("datainput")
Set rst = dbs.OpenRecordset("SELECT Description from datainput;")
check = rst.Fields(0).Value
MsgBox check
rst.Recordset.MoveNext
Next K
I'm trying to index down through the table datainput and pull the Description out of each record. Count1 is the total number of records in the table, but I keep pulling the Description from the same record each time. It is not indexing. Any ideas would be much appreciated.
Thanks,
met12
For K = 1 To Count1
Set dbs = OpenDatabase("c:\vb\invenVB.mdb")
'Set rst = dbs.OpenRecordset("datainput")
Set rst = dbs.OpenRecordset("SELECT Description from datainput;")
check = rst.Fields(0).Value
MsgBox check
rst.Recordset.MoveNext
Next K