使用选项卡式控件将选项卡控件添加到现有表单 [英] Adding a tab control to an existing form with tabbed controls

查看:88
本文介绍了使用选项卡式控件将选项卡控件添加到现有表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我很满意!


基本上,我有一个带有选项卡控件的表格(个人/联系方式,推荐信息,案例信息/状态等)和我想要在其中一个现有选项卡中添加选项卡式控件表单。


目前有两个名为约会和小组约会的标签。我想要做的是在Appointments选项卡中添加一个选项卡式控件,其中包含两个名为Individual Appointments和Group Appointments的选项卡,因此它看起来更整洁!


我试图以通常的方式从工具箱中添加选项卡式控件,然后将内容剪切并粘贴到其上,但是当我切换到窗体视图时,新添加的选项卡(我只想在Appointments选项卡中显示!)显示在所有现有选项卡上并覆盖表单。有没有办法让它只显示在约会选项卡上?我试图通过谷歌搜索和使用反复试验来查找Access,但我无法做到这一点。这可能是显而易见的事情!


我正在使用Access 2000.


提前致谢

Gareth

Sorry for the mouthful of a title!

Basically, I have a form with tabbed controls (Personal/Contact Details, Referral Information, Case Info/Status etc.) and I want to add a tabbed control form inside one of the existing tabs.

At the moment there are two tabs called Appointments and Group Appointments. What I want to do is add a tabbed control inside the Appointments tab with two tabs called Individual Appointments and Group Appointments so it looks tidier!

I have tried to do it in the usual way of adding a tabbed control from the toolbox and then cutting and pasting stuff onto it but when I switch to form view the newly added tab (which I only want to display inside the Appointments tab!) shows up over all of the existing tabs and covers the form. Is there a way to do make it so it only appears on the Appointments tab? I''ve tried to find out by googling and poking around Access using trial and error but I''ve not been able to do it. It''s probably something glaringly obvious!

I''m using Access 2000.

Thanks in advance
Gareth

推荐答案

您不能直接将选项卡式控件添加到选项卡式控件。你唯一的选择就是在你的约会选项卡上添加一个子表单,然后为这个子表单添加一个选项卡式控件。


如果是我,我会在您退出的选项卡控件上有两个单独的页面,一个用于组,一个用于个人约会。


Linq ; 0)>
You can''t add a tabbed control to a tabbed control, directly. You only alternative, which is kind of clunky, is to add a subform to your Appointments tab, then add a tabbed control to this subform.

If it was me, I''d just have two separate pages on your exiting tabbed control, one for group and one for individual appointments.

Linq ;0)>


嗯,我觉得这比它的价值更麻烦。向Appointments选项卡添加子表单的问题是它已经包含一个子表单,所以事情会变得混乱不是吗?


我在想,难道我没有if语句,只有当选择了约会选项卡时才会出现嵌套标签控件吗?这有点像拙劣的工作,但理论上它会起作用吗?


无论如何,谢谢你的帮助。我想我只会坚持两个标签


编辑:我玩了标签控件的OnChange事件,新标签控件将在里面并设法让它显示只在约会选项卡上!
Hmm, I was thinking this was more hassle than it''s worth. The problem with adding a subform to the Appointments tab is that it already contains a subform so things are going to get messy aren''t they?

I was thinking, couldn''t I have an if statement to make then nested tab control only appear when the Appointments tab is selected? It''s a bit of a botch job but in theory it''d work?

Anyway, thanks for your help. I guess I''ll just stick to two tabs

I played around with the OnChange event of the tabbed control the new tabbed control will be inside and managed to get it to display only on the Appointments tab!


好的,现在我遇到了一个新问题。我设法使一切工作正常,新的选项卡控件(TabCtlAppts)只显示在Appointments选项卡中。


但是,如果我在TabCtlAppts内的Group选项卡上更新任何内容,我点击返回Individual选项卡,TabCtlAppts消失了!


我尝试将主选项卡控件(TabCtl8)的OnChange事件中的相同代码添加到TabCtlAppts的不同部分和事件中但是到目前为止,它已经证明是徒劳的。这是它的价值代码:
Okay, now I have a new problem. I managed to get everything working fine and the new tabbed control (TabCtlAppts) only displays in the Appointments tab as required.

However, if I update anything on the Group tab inside TabCtlAppts, when I click back to the Individual tab, TabCtlAppts disappears!

I have tried adding the same code in the OnChange event of the main tabbed control (TabCtl8) into different parts and events of TabCtlAppts but it has proved fruitless thus far. This is the code for what it''s worth:
展开 | 选择 | Wrap | 行号


这篇关于使用选项卡式控件将选项卡控件添加到现有表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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