Moving Subform to Tab Control

J

JD

Hi There,

Wondering if someone has advice in regards to the following:

My architecure consists of a Back-End Access 2007 database and multiple
Front-End Access 2007 databases.

I created a Form using the Forms Wizard.
The Form includes data from multiple tables.
When creating the Form I chose to include a Subform.
Once the Form was completed, I added a Combo Box so I could choose an
employee from the drop-down list.
When I choose an employee from the drop-down list, the appropriate data
associated with the employee appears in the Subform.
I would now like to move the data within the Subform to multiple Tabs using
the Tab Control.

The problem is, when I move the labels, text boxes, and check-boxes from the
Subform into the Tab(s), the text boxes lose their association with the
appropriate Control Source.

I would appreciate if someone can recommend a solution.

Thanks,

Jason
 
A

Arvin Meyer [MVP]

Try copying and pasting, instead of moving. Any code that you have attached
will be lost because the names of the controls will change, but any other
properties attached to the control, including the controlsource, should
remain.
 
J

John W. Vinson

The problem is, when I move the labels, text boxes, and check-boxes from the
Subform into the Tab(s), the text boxes lose their association with the
appropriate Control Source.

I would appreciate if someone can recommend a solution.

A Tab Control has no logical or structural relationship to the data (unlike a
Subform). It's nothing but a way to share screen real estate. A textbox or
other control on a Tab Page is - logically - just on the Form containing that
tab control.

In contrast, a Subform is actually a different form, with a different
Recordsource query, a different relationship to the data in the tables, and
its own set of fields which can be used as Control Sources.

If you move a control from one form (the subform in this case) to a different
form (a tab control on the mainform), then yes, it will no longer be connected
to its original control source, because that control source does not exist in
the new location's Recordsource.

Could you describe the logical structure of the data? What are the
Recordsources of the form and the subform? What data are you trying to display
on the tab pages?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top