Hello. I have a MAIN form that needs to differ depending on the situation. So I have two TEMPLATE forms that I want to use to replace the MAIN form.
So roughly the logic is this:
Here's my current code:
So roughly the logic is this:
- Close the MAIN form
- Delete the MAIN form
- Copy TEMPLATE_A or TEMPLATE_B and rename them into MAIN form
Here's my current code:
Code:
DoCmd.SetWarnings False
DoCmd.Close acForm, "usysfrmMain"
DoCmd.DeleteObject acForm, "usysfrmMain"
DoCmd.SetWarnings True
Last edited: