Assuming the query is instantiated as a recordset of some type, it will have a property "EOF" When this property becomes "true", set the enabled property of the button to false.
Assigning the recordset the "name" [rst] and the button the "name" [cmdNext], the code would be something like"
Private Sub cmd_Next_Click
[tab]rst.MoveNext
[tab]If (rst.Eof) Then
[tab][tab]Me.cmdNext.Enabled = False
[tab]End If
MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over