Good morning everybody,
I'm trying to use a string variable inside the DoCmd.Close statement. Despite many attempts this doesn't work. Does anybody have a solution for that?
I have a form called frmFunctMod1 (there will be more forms like this, this is why I need to use the name as variable). Here is my (non-working) code trying to close the form:
Thanks in advance for any help!
I'm trying to use a string variable inside the DoCmd.Close statement. Despite many attempts this doesn't work. Does anybody have a solution for that?
I have a form called frmFunctMod1 (there will be more forms like this, this is why I need to use the name as variable). Here is my (non-working) code trying to close the form:
Code:
strModuleNameFull = "frmFunctMod1" Debug.Print "check string name", strModuleNameFull DoCmd.Close acForm, " ' & strModuleNameFull & ' ", acSaveYes
Comment