A2003 - Tab to Tab焦点 [英] A2003 - Tab to Tab Focus

查看:94
本文介绍了A2003 - Tab to Tab焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Access 2003


我有一个带有两个标签表单的主表单,一个显示客户端,另一个显示其他配偶信息,每个都有地址选项卡。当我点击客户端

地址标签时,我也希望显示配偶地址标签。


虽然以上是主要问题解决方法,它还可以更进一步......每个地址选项卡都有一个带有两个

标签的子表单;思域地址和邮寄地址。能够点击

客户思域地址标签,查看配偶思域地址标签

会很方便。


任何指导都会受到很大的好评。


Dave


表格:


主要表格:frmMain


- 客户端选项卡表单:TabMainClient

- 表一:TabClient

- 表二:TabClientAddresses


- sfrmClientAddresses

- TabClientAddresses

- TabClientCivic

- TabClientMailing


- 配偶标签形式:TabMainSpouse

- 标签一:TabSpouse

- 标签二:TabSpouseAddresses


- sfrmSpouseAddresses

- TabClientAddresses

- TabSpouseCivic

- TabSpouseMailing

Access 2003

I have a main form with two tab forms, one showing Client, and the
other Spouse info, each with Address tabs. When I click on the Client
address tab, I would like to have the Spouses address tab show as well.

Although the above is the primary issue to resolve, it would also be
handy to go a step further...each Address tab has a sub-form with two
tabs; Civic Address, and Mailing Address. Being able to click on the
Clients Civic address tab, and viewing the Spouses Civic Address tab
would be handy.

Any guidance would be greatly received.

Dave

Forms:

Main Form: frmMain

- Client Tab Form: TabMainClient
- Tab One: TabClient
- Tab Two: TabClientAddresses

- sfrmClientAddresses
- TabClientAddresses
- TabClientCivic
- TabClientMailing

- Spouse Tab Form: TabMainSpouse
- Tab One: TabSpouse
- Tab Two: TabSpouseAddresses

- sfrmSpouseAddresses
- TabClientAddresses
- TabSpouseCivic
- TabSpouseMailing

推荐答案

我相信Forms!TabMainSpouse!TabSpouseAddresses.SetFocus是非常好的b / b
大致是你正在寻找的语法。我不完全确定表单的

层次结构...... TabMainClient和TabMainSpouse是子表格
另一种形式的
?他们有自己的子形态?我有点困惑,

像往常一样。


您可以将代码放在标签页的OnClick()事件中以设置焦点

到另一个对象。这有帮助吗?

I believe Forms!TabMainSpouse!TabSpouseAddresses.SetFocus is very
roughly the syntax you''re looking for. I''m not entirely sure about the
hierarchy of your forms...TabMainClient and TabMainSpouse are subforms
of another form? and they have their own subforms? A bit confused I am,
as usual.

You can put code in the OnClick() event of a tabpage to set the focus
to another object. Does that help?


Steve写道:
我相信Forms!TabMainSpouse!TabSpouseAddresses.SetFocus非常
I believe Forms!TabMainSpouse!TabSpouseAddresses.SetFocus is very




我刚尝试了你的建议,以及一些变化,但没有运气我很害怕。
害怕。


对不起有任何困惑:基本上主表单叫做frmMain

- 在这个表单上,我有两个选项卡表单。第一个标签管理一些

一般客户信息,并有两页。


这个标签表单叫做TabMainClient;第一页叫做

TabClient,第二页叫做TabClientAddresses。在

第二页,我有一个名为sfrmClientAddresses的子表单,它有两个

标签页。第一页是TabClientCivic,第二页是

TabClientMailing。


同样的设置用于我主表单上的第二个标签,但配偶

代替客户:


TabMainSpouse

- TabSpouse(第一个标签)

- TabSpouseAddresses(第二个)标签)

- sfrmSpouseAddresses

- TabSpouseCivic

- TabSpouseMailing


我希望这有助于澄清设置,虽然我必须承认它确实

听起来相当混乱,在视觉上更容易口头解释。


干杯,

Dave



I just tried your suggestion, and some variations of, but no luck I''m
afraid.

Sorry for any confusion: essentially the Main form is called frmMain
- on this form, I have two tabbed forms. The first tab manages some
general client info, and has two pages.

This tab form is called, TabMainClient; the first page is called
TabClient, and the second page is called TabClientAddresses. On the
second page, I have a subform called sfrmClientAddresses, which has two
tabbed pages. The first page is TabClientCivic, and the second,
TabClientMailing.

The same setup is used for the second tab on my main form, but Spouse
is substituted for Client:

TabMainSpouse
- TabSpouse (1st tab)
- TabSpouseAddresses (2nd tab)
- sfrmSpouseAddresses
- TabSpouseCivic
- TabSpouseMailing

I hope this helps to clarify the setup, although I must admit it does
sound rather confusing, much easier visually then to explain verbally.

Cheers,

Dave


在TabClients控件的OnChange中,输入以下代码:

Forms!frmMain。 Form!TabControlName.Pages(TabClients .Value).SetFocus


其中(如果我把这个放到右边)TabClients是一个选项卡控件

sfrmClientAddresses和TabControlName是

sfrm上的选项卡控件的名称ClientSpouseAddresses。

In the OnChange of your TabClients control, put the following code:
Forms!frmMain.Form!TabControlName.Pages(TabClients .Value).SetFocus

Where (if I''ve got this down right) TabClients is a tab control in
sfrmClientAddresses and TabControlName is the name of a tab control on
sfrmClientSpouseAddresses.


这篇关于A2003 - Tab to Tab焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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