I have a form with a drop down box but if the name does not appear, the user clicks an "add user" button to open a new form where they can enter the name. The name appears in the drop down box but the associated information is not displayed in the form. If I manually refresh the form it works great. I would like to close the "add user" form and have the underlying for automatically refresh. No code I have tried is working.
Here is my code.
Private Sub Submit_Click()
On Error GoTo Err_Submit_Click
DoCmd.Close
Forms!tcs participants!combo21.Requery
Exit_Submit_Click:
Exit Sub
Err_Submit_Click:
MsgBox Err.Description
Resume Exit_Submit_Click
End Sub
Here is my code.
Private Sub Submit_Click()
On Error GoTo Err_Submit_Click
DoCmd.Close
Forms!tcs participants!combo21.Requery
Exit_Submit_Click:
Exit Sub
Err_Submit_Click:
MsgBox Err.Description
Resume Exit_Submit_Click
End Sub