|
Public Function dimission(emp_sn As Integer)
Dim comm As New ADODB.Command
With comm
.ActiveConnection = CurrentProject.Connection
.CommandType = adCmdStoredProc
.CommandText = "usp_emp_dimission"
.Parameters.Refresh
.Parameters(1).Value = emp_sn
.Execute
End With
If comm.Parameters(0).Value = 0 Then
MsgBox "procedure was successful! tks your use!"
Else
MsgBox "employee no:" & CStr(emp_sn) & " dimission fial", vbOKCancel, "HG_info"
End If
Set comm = Nothing
End Function
-----------------------------------------原創--------------------------
[em23] |
|