Private Sub cmdSample_Click()
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
With rst
If .RecordCount Then
.MoveFirst
Do Until .EOF 'When the last record is reached the code stops
Me.Bookmark = .Bookmark
'Run your code here
.MoveNext
Loop
End If
End With
rst.Close
Set rst = Nothing
End Sub
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
ASKER