How to create a new form instance using the name of the form as a String

后端 未结 3 443
遥遥无期
遥遥无期 2021-01-24 23:46

Code to create new form instance of a closed form using form name

I want to replace the long Select Case list with a variable.

Full code of modu

3条回答
  •  再見小時候
    2021-01-25 00:03

    I've also done some testing of my own and some reading online about this. As near as I can tell, it isn't possible to create a new form object and set it to an instance of an existing form using a string that represents the name of that form without using DoCmd.OpenForm.

    In other words, unless someone else can prove me wrong, what you are trying to do cannot be done.

提交回复
热议问题