Sub OpenFormtest(ByVal FormName As String)
DoCmd.OpenForm FormName End Sub
然后在主程序中添加引用,在主程序中直接调用 call openformtest("窗体名称")及可。
点击下载此附件