Solved

Tab Control Colour Change

Posted on 1998-06-30
6
212 Views
Last Modified: 2008-03-10
I have a tab control page in an Access 97 containing approximately 20 pages and I need the tab control text to change colour when a user has clicked and entered that page. When the user exits the database the next user must encounter the same process. This will allow each user to know when they have visited and completed a particular page. Does anyone know how I might be able to apply this?
0
Comment
Question by:djadams
6 Comments
 
LVL 6

Accepted Solution

by:
devtha earned 100 total points
ID: 1976005
On the Gotfocus event of each TAB put in the followin code:

TAB.text I am not sure about the 7 syntax.
text.forecolor = rgb(255,0,0) 'Red color

On lostfocus event
text.forecolor = rgb(0,0,0) 'black



0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1976006
What text do you want to change? Tab control itself doesn't have colour property.
0
 
LVL 12

Expert Comment

by:Trygve
ID: 1976007
In addition to devthas suggestion, you will have to save the users "currentpage" into some table and read from this every time the user opens the form. This way you will be able to present him/her with the page the was active when the form closed down.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

Author Comment

by:djadams
ID: 1976008
Devtha, there is no Gotfocus or Lostfocus event in the properties for tabs within a control page. Am I looking in the wrong place or have I misunderstood your answer? It is only the Tab label text that needs to change.
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1976009
You can't change Tab label text.
0
 
LVL 6

Expert Comment

by:devtha
ID: 1976010
I got a workaround.
I am sorry about the forecolor property.
What you can do is make a small bitmap file with text on it and then change the bitmap when you click the tabpage.
page1.picure = "c:\windows\help.bmp"

This will display the bmp as text HELP. on the tab page.

Devtha
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now