I have a form that has two subforms. One subform shows the required training that an employee should have based on his job classification. The second form shows what training is currently assinged for that employee. I have it setup so that a user can click on any item in the first list that is missing from the employee and have it added to his records.
I would like the subform showing what the employee currently has assigned to be updated after each item is clicked on the first subform. The vb code for on click event is:
Private Sub Training_Name_Click()
Dim trainmsg As Integer
trainmsg = MsgBox("Are you sure you want to add this training type to the selected employee?", 1, "Training Addition Message")
If trainmsg = 1 Then
DoCmd.SetWarnings warningsOff
DoCmd.OpenQuery "Query_Append_unassignedtraining"
DoCmd.SetWarnings warningsOn
End If
End Sub
How do I requery my other subform? What would be the correct coding to add after warningsOn?
Thanks.
I would like the subform showing what the employee currently has assigned to be updated after each item is clicked on the first subform. The vb code for on click event is:
Private Sub Training_Name_Click()
Dim trainmsg As Integer
trainmsg = MsgBox("Are you sure you want to add this training type to the selected employee?", 1, "Training Addition Message")
If trainmsg = 1 Then
DoCmd.SetWarnings warningsOff
DoCmd.OpenQuery "Query_Append_unassignedtraining"
DoCmd.SetWarnings warningsOn
End If
End Sub
How do I requery my other subform? What would be the correct coding to add after warningsOn?
Thanks.