Hi
Ok here goes...
I have a form which Displays data for a Regional office (there are several of these offices - each represented by it's own instance of the form).
This form contains a tab control.
Page one of the tab control shows general data for the regional office. Any other pages in the tab control each display a different department's (within the office) information.
The department make-up varies for each regional office both in number and type.
I have discovered that Access 2000 cannot add or delete pages to a tab control at runtime but you can play with the visible property of tabs. So, what I have done is added the max number of possible departments for a regional office (a nice rounded 10).
Any tips on the best way to: 1, identify the names and number of an office's departments* 2, Name and make visible the pages required, 3, populate the department data on each page. Presumably this code could be run when the form opens but how about using the navigation buttons to move from one regional office to another?
Many thanks - apologies for the lengthy description.
A
*The table relationship of Office--Department is a one to many
Ok here goes...
I have a form which Displays data for a Regional office (there are several of these offices - each represented by it's own instance of the form).
This form contains a tab control.
Page one of the tab control shows general data for the regional office. Any other pages in the tab control each display a different department's (within the office) information.
The department make-up varies for each regional office both in number and type.
I have discovered that Access 2000 cannot add or delete pages to a tab control at runtime but you can play with the visible property of tabs. So, what I have done is added the max number of possible departments for a regional office (a nice rounded 10).
Any tips on the best way to: 1, identify the names and number of an office's departments* 2, Name and make visible the pages required, 3, populate the department data on each page. Presumably this code could be run when the form opens but how about using the navigation buttons to move from one regional office to another?
Many thanks - apologies for the lengthy description.
A
*The table relationship of Office--Department is a one to many