Solved

scrolling in subform on tab page and make other tabs not visible based on field value

Posted on 2016-11-16
2
47 Views
Last Modified: 2016-11-17
I have a form with a subform:

"main_form"
"my_subform"   several fields but the field i need value from is  "Amended"
Tabct12  
page1, page2, page3, page4

While i'm scrolling in the subform, and the field value for "Amended" = "Yes"

I need page2, page3 on the tablccontrol to be set to Visible = "No"

Thanks
fordraiders
0
Comment
Question by:fordraiders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 41889997
try using the current event of the subform

private sub form_current()

if me.Amended = "Yes" then
  me.parent.Tabct12.page1.visible=true
 me.parent.Tabct12.page2.visible=true
else
  me.parent.Tabct12.page1.visible=false
 me.parent.Tabct12.page2.visible=false
end if

end sub
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 41891615
thanx, what i had come up with..just checking to see if another way...Thnx rey !
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

717 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