Data Entry Form Connected With Database (Excel Sheet)
VBA Code - Option Explicit Dim curRecNo As Long Private Sub btnFirst_Click() If Me.cmbEmpName.ListCount > 0 Then Me.cmbEmpName.ListIndex = 0 curRecNo = Me.cmbEmpName.ListIndex + 1 Me.lblCurrentRecNo.Caption = "Record No.: " & curRecNo End If End Sub Private Sub btnLast_Click() If Me.cmbEmpName.ListCount > 0 Then Me.cmbEmpName.ListIndex = Me.cmbEmpName.ListCount - 1 curRecNo = Me.cmbEmpName.ListCount Me.lblCurrentRecNo.Caption = "Record No.: " & curRecNo End If End Sub Private Sub btnNext_Click() ...