I didn't save the file before I tried running it again, I no longer get the error, but the button doesn't seem to do anything. It just stays with the current record.<br>
<br>
Same code as before, but no error pops up. It just doesn't do anything.
Private Sub cmdNext_Click()<br>
<br>
Dim db As Database<br>
Dim rst As Recordset<br>
<br>
Set db = CurrentDb<br>
Set rst = db.OpenRecordset("people")<br>
<br>
If rst.EOF Then<br>
rst.MoveFirst<br>
Else<br>
rst.MoveNext<br>
End If<br>
<br>
End Sub<br>
<br>
The error I get is...
Can anyone help me with some code for Access 97. I have a form that goes through records in a table called "people".<br>
For some reason the EOF or BOF won't work like it does in Visual Basic 5. I have a previous button and a next button on my form and for some reason I can't get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.