OK, I have found the code. Everything is ok there.
Code:
Why was the parameter dialog box displayed?? It was caused by your code. You tried to reference (requery) a form that was CLOSED! (And by using incorrect syntax at that!)
But I have a few questions and the first is : how that form frmPersonnel is closed by just inspecting code? It is not apparent to me. I understand that
you cannot or you should not requery a closed form. But how do you know just by the seat of your pants?
Code:
So, form "frmPersonnel" is open. You click on the ADD button and this code executes[
In here you just assume that the form is now open? Is this for pedagogical purposes here?
Sort of like let's assume frmPersonnel is open? I just do not follow the steam of logic.
So I am guessing that I change the line
Form_frmPersonnel.Requery
to what? What do I add?
You also said add a close button and then requery frmPersonnel?
Is this the way to do things?
Any help appreciated. Thanks in advance.
Respectfully,
Lou Reed