Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / December 2005

Tip: Looking for answers? Try searching our database.

dynamically create Tab Control possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zhouzhendong@hotmail.com - 16 Dec 2005 05:25 GMT
Hi,
I just wonder whether it is possible to create Tab Control in runtime?
The reason I want that is as follows:
I wanna show a table that contains several categories of information of
clients, e.g., personal address/contacts, company address/contacts,
education backgrounds, working backgrounds, etc.
But not all persons have all those categories of information. I don't
wanna
show blank tab pages for those not having corresponding categories of
info.
So for each person, the number of tab pages may be different. I need to
construct the tab control at runtime.
Can I do that with VBA or any other way?
Thanks a lot
Randy Harris - 16 Dec 2005 05:37 GMT
> Hi,
> I just wonder whether it is possible to create Tab Control in runtime?
[quoted text clipped - 10 lines]
> Can I do that with VBA or any other way?
> Thanks a lot

I've had excellent results making tab pages visible (or not) at run time.  I
do it based on the permissions of the user logged in.

Me.TabControl.Pages("Invoice").Visible = RoleFinance

In the form open event.

HTH,
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.