如何从另一种形式打电话?

时间:2021-01-27 11:47:18

I have "login" form. My submit button checks username and password. I want this button also close "login" form and open another form where form name comes from label caption. For example:

我有“登录”表格。我的提交按钮检查用户名和密码。我希望此按钮也关闭“登录”表单并打开另一个表单,其中表单名称来自标签标题。例如:

DoCmd.OpenForm "label11.caption"

But I get error. and cannot solve this. Please help Thanks in advance

但我得到错误。并不能解决这个问题。请提前帮助,谢谢

1 个解决方案

#1


2  

It should read:

它应该是:

DoCmd.OpenForm Me!label11.Caption

#1


2  

It should read:

它应该是:

DoCmd.OpenForm Me!label11.Caption