Solved

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

Posted on 2016-11-16
2
45 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

749 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