Noreene Patrick
Registered User.
- Local time
- Today, 14:54
- Joined
- Jul 18, 2002
- Messages
- 223
Private Sub Position_Exit(Cancel As Integer)
Dim EmployeeID, FirstName, LastName As String
Dim strsqlnew As String
EmployeeID = Me.EmployeeID
FirstName = Me.FirstName
LastName = Me.LastName
strsqlnew = "INSERT INTO tblEmployeeStatus(employeeid, firstname, lastname)VALUES ('" & EmployeeID & "','" & FirstName & "','" & LastName & "')"
End Sub
This code is in the on exit event of the last field in my form AddNewEmployee (which the source is tblemployeeinfo). I want it to copy only employeeid, firstname and lastname into another table called tblemploymentstatus. The point being that HR only has to input a person once and the person also appears in the employment status table each time a new employee is hired. The info will go into the tblemployeeinfo, but it will not appear in the tblemploymentstatus.. I cant figure why it doesnt appear...can you help me?
Thanks in advance, Noreene
Dim EmployeeID, FirstName, LastName As String
Dim strsqlnew As String
EmployeeID = Me.EmployeeID
FirstName = Me.FirstName
LastName = Me.LastName
strsqlnew = "INSERT INTO tblEmployeeStatus(employeeid, firstname, lastname)VALUES ('" & EmployeeID & "','" & FirstName & "','" & LastName & "')"
End Sub
This code is in the on exit event of the last field in my form AddNewEmployee (which the source is tblemployeeinfo). I want it to copy only employeeid, firstname and lastname into another table called tblemploymentstatus. The point being that HR only has to input a person once and the person also appears in the employment status table each time a new employee is hired. The info will go into the tblemployeeinfo, but it will not appear in the tblemploymentstatus.. I cant figure why it doesnt appear...can you help me?
Thanks in advance, Noreene