Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using subforms on tab controls

Status
Not open for further replies.

topgeek

MIS
Oct 28, 2001
59
GB
I am writing an Employee Information database where I need to store, payments, sickness, holidays etc on a per employee basis. Is it posible to have a series of tabs on the main form showing, sickness, holidays etc so that when I move to the next record (next enmployee) on the main form the associated records for that employee change on each tab form?

I have created a seprate sickness table for example and placed that on one of the tabs, but when I change employees the sickness records remain the same.
 
Have you setup relationships between the two tables? and did you use the wizard to create your subform? The answer to your question is yes, you can put a subform on a tab. Don't forget to click the tab you want to install the subform on otherwise it will appear on the tab but still be there when you change your tab page.
 
The simplest thing to do is simply click the desired tab (otherwise, the subform will appear on all tabs-as ZOR pointed out). Then use the "Subform" wizard to add the desired subform to the appropriate tab. Use the wizard to determine the linked fields.

If the subform is already in place, go into form properties (double-click the gray box that intersects both rulers), activate the "Data" tab and set the Master Child links manually.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top