Access 2000 - 删除多个表单?
无论如何要删除 Access 2000 中的多个表单、查询等吗? (在设计器中就是这样)。
Anyway to Erase multiple forms, queries, etc in Access 2000? (In the designer that is).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这对我来说效果更好。尝试删除循环本身中的元素一直遇到麻烦。我只是将对象名称放入数组中,然后将其删除。
结束子
This worked better for me. Trying to remove the elements in the loop itself kept having trouble. I just slapped the object names into an array, then deleted them afterward.
End Sub
当用户执行某些操作时,我会即时创建大量查询。因此,我将创建查询,然后在关闭表单后删除该查询。我在“关闭”事件下执行此操作。无论是否创建查询,它都会运行。因此,为了防止出现错误,我告诉它继续下一步。
I create a lot of queries on the fly when a user performs certain actions. So, I'll create the query, then delete the query once they close the form. I do this under the On Close event. It runs regardless of whether the query was created or not. So, to prevent an error, I tell it to Resume Next.
您可以使用 VBA 删除对象。从集合中删除时一定要向后退一步,例如,此代码将删除相当多的对象:
You can delete objects with VBA. Be sure to step backwards when deleting from a collection, for example, this code will delete quite a few objects: