Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Content and Accessing Global Parameter

Status
Not open for further replies.

Marryp

Technical User
May 28, 2001
129
CA
I have a report that has a parameter for report type: Summary, Detail, Executive. Depending on the user input for the report type. Some AcFrame (all the controls in the content) in the group will be hidden.

I am currently using this code in the acFrame:

Function ShowWhenViewing( ) As Boolean
ShowWhenViewing = Super::ShowWhenViewing( )

If ReportType <> "Executive" then
ShowWhenViewing = False
End If

End Function

The problem I have is that when this function is called there are no values for any parameter including the global variable for the report type that the user fills in. So how can I retrieve the parameter value in the code above. Or is there a better way of hiding acFrame?

Thanks all in advance!
 
Delcare ReportType as a parameter with global scope and then use the frame Start or Finish method as follows:

If ReportType <> "Executive" then
Size.Height = 0
End If


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top