A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Moving Subform to Tab Control



 
 
Thread Tools Display Modes
  #1  
Old April 6th, 2010, 03:54 AM posted to microsoft.public.access.forms
JD
external usenet poster
 
Posts: 199
Default Moving Subform to Tab Control

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
  #2  
Old April 6th, 2010, 04:54 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Moving Subform to Tab Control

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.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"JD" wrote in message
...
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



  #3  
Old April 6th, 2010, 05:08 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Moving Subform to Tab Control

On Mon, 5 Apr 2010 19:54:01 -0700, JD wrote:


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?
--

John W. Vinson [MVP]
  #4  
Old April 7th, 2010, 07:47 PM posted to microsoft.public.access.forms
JD
external usenet poster
 
Posts: 199
Default Moving Subform to Tab Control

Thanks to the replies from everyone.

Think I'm going to restructure the database.

"John W. Vinson" wrote:

On Mon, 5 Apr 2010 19:54:01 -0700, JD wrote:


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?
--

John W. Vinson [MVP]
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.