Академический Документы
Профессиональный Документы
Культура Документы
This form shows login form. It always asks for username and
password.
MAIN FORM
It shows the main form. It contains different buttons, menus and sub
menu items
Payroll process
This form automatically generates the salary of the employee for the
given period of time.
DTR
SOURCE CODE
Private Sub Form_Load()
loadall
End Sub
Dim RS As ADODB.Recordset
Set RS = New ADODB.Recordset
RS.Open "select * from employee", Cn,
adOpenDynamic, adLockOptimistic
If RS.RecordCount <> 0 Then
lv1.ListItems.Clear
Do While Not RS.EOF
End Sub
Unload Me
frmaddemp.Show
End Sub
frmeditemp.Show
End If
End Sub
Dim a As String
a = MsgBox("Are you sure you want to save this
data?", vbYesNo)
If a = vbYes Then
Set RS = Nothing
cOn
RS.Open "Select * from employee where id = '"
& Me.lblid & "'", Cn, adOpenDynamic,
adLockOptimistic
If RS.RecordCount <> 0 Then
RS.Delete
End If
Sub search1()
Dim iTm As ListItem
cOn
Dim RS As ADODB.Recordset
Sub search2()
Dim iTm As ListItem
cOn
Dim RS As ADODB.Recordset