YOU get to decide what happens.
Lets start with "frmPersonnel".
With "frmPersonnel" open, there is a button with the caption "Add", Clicking the button executes code: currently the code is
Code:
DoCmd.OpenForm "frmAddPersonnel"
DoCmd.Close acForm, "frmPersonnel"
The first line opens another form. You have to open this form to add new personnel.
The second line closes the open form "frmPersonnel".
But you have some options: you can close the form or leave it open.
If you leave the form "frmPersonnel" open, you have two options: leave the form visible or hide the form.
You get to decide what you want to happen........
If you decide to leave "frmPersonnel" open and hide it (not visible), then you can requery "frmPersonnel" after you add personnel and click the ADD button on form "frmAddPersonnel".
I think someone needs to sit down and decide how to navigate through all of the forms. Right now, clicking on the "Personnel Management" button opens the form "frmPersonnel", leaving "DivisionDashboard" open/visible.
Clicking on the ADD button on "frmPersonnel" opens "frmAddPersonnel" and CLOSES "frmPersonnel". But "frmAddPersonnel" is hidden behind "DivisionDashboard".
Closing "frmAddPersonnel" leaves you at "DivisionDashboard". that is ok if that is where you want to be. I would think you would want to be back at "frmPersonnel".
And back to the requery...... again, this is the wrong syntax:
Code:
Form_frmPersonnel.Requery
Should be
Code:
Forms!frmPersonnel.Requery
If you decide to close "frmPersonnel", then the requery line should be deleted/commented out.
If the form is left open, whether hidden or visible, then the requery command should be left in the code.
I rarely use the Modal or Pop up properties. I think forms management is much better. If there is only one form visible, users have to interact with only that form.