Hi,
I try to disable a command button when I get to the end of the record. The following is the code that I wrote. I declared the variable locally. Any help will be thankful.
Cal
Dim rst As Recordset
Dim dbs As Database
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblISstaff"
rst.MoveNext
If (rst.EOF) Then
Me.next.Enabled = False
End If
I try to disable a command button when I get to the end of the record. The following is the code that I wrote. I declared the variable locally. Any help will be thankful.
Cal
Dim rst As Recordset
Dim dbs As Database
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblISstaff"
rst.MoveNext
If (rst.EOF) Then
Me.next.Enabled = False
End If