D
dan
I have a form that shows contact details. This form also
has a sub form which shows lists of other contacts that
are associated with the current contact. The object name
for the sub form is sfrmAssociatedContacts and is bound to
the [Associated Contacts] form.
The [Associated Contacts] form has several tabs, but I
only want to show the tabs that are relevant to the
current contact record in the main form. That is, I may
want to hide or show other tabs depending on values of the
current contact record.
I thought I could add a public method in the [Associated
Contacts] form module called SetTabs and then call it in
the main form's Form_Current() event routine, as follows:
sfrmAssociatedContacts.SetTabs
However, the routine is not recoginised as being part of
the sfrmAssociatedContacts object.
Can someone advise me how best to implement what I need?
Thanks,
Dan.
has a sub form which shows lists of other contacts that
are associated with the current contact. The object name
for the sub form is sfrmAssociatedContacts and is bound to
the [Associated Contacts] form.
The [Associated Contacts] form has several tabs, but I
only want to show the tabs that are relevant to the
current contact record in the main form. That is, I may
want to hide or show other tabs depending on values of the
current contact record.
I thought I could add a public method in the [Associated
Contacts] form module called SetTabs and then call it in
the main form's Form_Current() event routine, as follows:
sfrmAssociatedContacts.SetTabs
However, the routine is not recoginised as being part of
the sfrmAssociatedContacts object.
Can someone advise me how best to implement what I need?
Thanks,
Dan.