打开表单后使用VB更改表单视图? [英] Change form view using VB after the form is opened?

查看:77
本文介绍了打开表单后使用VB更改表单视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在打开表单后使用VB更改表单视图?


我正在使用Switchboard,就像向导加载它一样。我已经调整了外观和几行代码,但我不想修改它太多。


当我尝试加载一个具有属性集的表单时要仅作为数据表视图加载,交换机的VB代码会覆盖这些设置并将其加载到窗体视图中。


我可以在Form_Open或其他一些事件中使用VB来更改回到数据表?


我正在使用Access 2002 ....


James

How do I change the form view using VB after the form is opened?

I am using the Switchboard pretty much as the wizard loads it. I''ve tweaked the appearance and a couple of lines of code but I don''t want to modify it too much.

When I try to load a form with the properties set to load as Datasheet view only, the switchboard''s VB code overrides these settings and loads it in Form view.

Can I use VB in the Form_Open or some other event to change the view back to datasheet?

I''m using Access 2002 ....

James

推荐答案


如何在打开表单后使用VB更改表单视图?


我正在使用交换机就像向导加载它一样。我已经调整了外观和几行代码,但我不想修改它太多。


当我尝试加载一个具有属性集的表单时要仅作为数据表视图加载,交换机的VB代码会覆盖这些设置并将其加载到窗体视图中。


我可以在Form_Open或其他一些事件中使用VB来更改回到数据表?


我正在使用Access 2002 ....


James
How do I change the form view using VB after the form is opened?

I am using the Switchboard pretty much as the wizard loads it. I''ve tweaked the appearance and a couple of lines of code but I don''t want to modify it too much.

When I try to load a form with the properties set to load as Datasheet view only, the switchboard''s VB code overrides these settings and loads it in Form view.

Can I use VB in the Form_Open or some other event to change the view back to datasheet?

I''m using Access 2002 ....

James



对于要打开的表单,更改默认视图和允许的视图的格式选项卡下的属性,以便两者都设置为数据表。

For the form being opened change the properties under the format tab of Default View and Views Allowed so both are set to Datasheet.



对于要打开的表单,请更改默认视图和允许的视图的格式选项卡下的属性,以便将两者都设置为数据表。
For the form being opened change the properties under the format tab of Default View and Views Allowed so both are set to Datasheet.



我试过这个,它仍然在Form视图而不是数据表视图中打开。我认为这是因为Switchboard向导创建的VB代码:

I tried this and it still opens in Form view instead of Datasheet view. I think this is because the VB code created by the Switchboard wizard:

展开 | 选择 | Wrap | 行号



I试过这个,它仍然在窗体视图而不是数据表视图中打开。我认为这是因为Switchboard向导创建的VB代码:
I tried this and it still opens in Form view instead of Datasheet view. I think this is because the VB code created by the Switchboard wizard:
展开 | 选择 | Wrap | 行号


这篇关于打开表单后使用VB更改表单视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆