• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 57
  • Last Modified:

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

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
Fordraiders
Asked:
Fordraiders
1 Solution
 
Rey Obrero (Capricorn1)Commented:
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
 
FordraidersAuthor Commented:
thanx, what i had come up with..just checking to see if another way...Thnx rey !
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now