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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change focus on Tabs....

Status
Not open for further replies.

f0rg3tfu1

MIS
Aug 25, 2004
103
US
Hello all,

Quick access question....

I have a form in Access 2003. On the bottom I have a series of tabbed panels.

I want to say that if this particular field is equal to "KPI" that the SECOND tab will be in focus... and if not then the other tab will be in focus.

Any idea how to do this?
 
well you can make and if statement on the after update of that field

Code:
if fieldName = "KP1" then
    TabName2.setfocus
else
    Tabname1.Setfocus
end if

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
you dont need to make a module just right click on that field clikc properties and in the properties there is a line call AfterUpdate and there you choose from the list [Even Procedure] and then click on button that has ... onit on it will open the VBE in ther you type the code i wrote

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
your welcome i am really happy for you and myself that i feel usefull

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top