Solved

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

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

770 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