jadams0173
Technical User
- Feb 18, 2005
- 1,210
I think I'm making this harder than it should be. I have form with a command button on it. When the button is pressed after some other events take place I want to close the form with the command button and the reopen that form.
The reason is there is a dynamic make table that I bind the form to. After the other events run and the records are updated I need to reopen the form so the dynamic maketable will run so I can bind the updated table to the form.
Currently I have in the command button on click
But of course that won't work because the form hasn't complete unloaded and this keeps the table which I need to recreate locked. Any ideas?
The reason is there is a dynamic make table that I bind the form to. After the other events run and the records are updated I need to reopen the form so the dynamic maketable will run so I can bind the updated table to the form.
Currently I have in the command button on click
Code:
DoCmd.Close acForm, "FRMMAIN"
DoCmd.OpenForm "frmmain"
But of course that won't work because the form hasn't complete unloaded and this keeps the table which I need to recreate locked. Any ideas?