hide tab on form based on text field value

janith

CPA
Local time
Today, 09:17
Joined
Apr 11, 2012
Messages
65
Hi

I'm trying to set up a tab which should only be visible on load form function based on a text field value. Can someone suggest the VBA choose for this?
 
If me.txtname = {whatever} then
me.pagename.visible = true
else
me.pagename.visible=false
end if
 
Will this be part of on load form?.. Will help if you can provide the complete code.. Sorry
 
Use it on the form Load event or on the me.txtname_AfterUpdate event, probably the latter unless you have a bound form.

I gave you the complete code.
 

Users who are viewing this thread

Back
Top Bottom