I'm stumped, and could really use an expert's advice. I have two tables: raw and matrix -- both are sorted ascending on the first row (if that matters). raw has 607,513 rows and 4 fields. Matrix has 383,078 rows and 27 fields. When I run the following code with matrix as my recordset, it moves to the first row, and picks off the value in the first field, displaying it in the messagebox (as desired)... but when I run it with raw it displays the first field value of row 249 -- not the first record. If I try to use a for i= 0 to 248 with MovePrevious, it bombs when i=1. Can anyone think of why it would not move to the first record with one particular table? How can this be fixed? Thanks in advance!
Sub main_Base()
Dim mydb As DAO.Database
Dim raw As DAO.Recordset
Set mydb = CurrentDb
Set raw = mydb.OpenRecord set("2_Base_Dem ands_by_Week")
raw.MoveFirst
MsgBox raw(0)
raw.Close
End Sub
Dim mydb As DAO.Database
Dim raw As DAO.Recordset
Set mydb = CurrentDb
Set raw = mydb.OpenRecord set("2_Base_Dem ands_by_Week")
raw.MoveFirst
MsgBox raw(0)
raw.Close
End Sub
Comment