Sunday, September 26, 2021

Isvisible property

Applies to

BoundObjectFrame Object

Image Object

OptionButton Object

SubForm Object

CheckBox Object

Label Object

OptionGroup Object

TabControl Collection

ComboBox Object

Line Object

Page Object

TextBox Object

CommandButton Object

ListBox Object

PageBreak Object

ToggleButton Object

CustomControl Object

ObjectFrame Object

Rectangle Object

You can use the IsVisible property in Visual Basic for Applications (VBA) code to determine whether a control on a report is visible. Read/write Boolean.

expression.IsVisible

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

The IsVisible property uses the following settings.

Setting

Description

True

(Default) The control is visible.

False

The control isn't visible.

Note: You can set the IsVisible property only in the Print event of a report section that contains the control.

You can use the IsVisible property together with the HideDuplicates property to determine when a control on a report is visible and show or hide other controls as a result. For example, you could hide a line control when a text box control is hidden because it contains duplicate values.

Example

The following example uses the IsVisible property of a text box to control the display of a line control on a report. The report is based on a Products table and uses three controls with the following properties.

Properties

Line control

Text box #1

Text box #2

Name

Line0

CategoryID

ProductName

ControlSource

CategoryID

ProductName

HideDuplicates

Yes

No

Left

0

0

2.0

Top

0

.1

.1

Width

4.0

1.0

1.0


Paste the following code into the Declarations section of the report module, and then view the report to see the line formatting controlled by the IsVisible property:

Private Sub Detail_Print(Cancel As Integer, _
PrintCount As Integer)
If Me!CategoryID.IsVisible Then
Me!Line0.Visible = True
Else
Me!Line0.Visible = False
End If
End Sub

3 comments:

  1. HELLO GET OUT OF FINANCIAL MESS WITH THE HELP OF drbenjaminfinance@gmail.com

    I have been in financial mess for the past months, I’m a single mum with kids to look after. My name is REBECCA MICHAELSON, and am from Ridley Park, Pennsylvania. A couple of weeks ago My friend visited me and along our discussion she told me about DR BENJAMIN OWEN FINANCE of (drbenjaminfinance@gmail.com); that he can help me out of my financial situation, I never believed cause I have spend so much money on different loan lenders who did nothing other than running away with my money. She advised, I gave it a try because she and some of her colleagues were rescued too by this Godsent lender with loans to revive their dying businesses and paying off bills. so I mailed him and explain all about my financial situation and therefore took me through the loan process which was very brief and easy. After that my loan application worth $278,000.00USD was granted, all i did was to follow the processing and be cooperative and today I am a proud business owner sharing the testimony of God-sent Lender. You can as well reach him through the Company WhatsApp +19292227023 Email drbenjaminfinance@gmail.com

    THANK YOU VERY MUCH

    ReplyDelete
  2. Hello Everyone,

    Welcome to the future! Financing made easy with Prof. Mrs. DOROTHY LOAN INVESTMENTS

    Have you been looking for financing options for your new business plans, Are you seeking for a loan to expand your existing business, Do you find yourself in a bit of trouble with unpaid bills and you don’t know which way to go or where to turn to? Have you been turned down by your banks? MRS. DOROTHY LOAN INVESTMENTS says YES when your banks say NO. Contact us as we offer financial services at a low and affordable interest rate of 2% for long and short term loans. Interested applicants should contact us for further loan acquisition procedures via profdorothyinvestments@gmail.com

    Services rendered include:

    *Refinancing Loans
    * Car Loan
    *Truck Loans
    * Home Loan
    * Mortgage Loan
    * Debt Consolidation Loan
    * Business Loan [secure and unsecured]
    * Personal Loan [secure and unsecured]
    * Students Loan and so many others.

    For more info; Contact us via Email: profdorothyinvestments@gmail.com

    With Prof. Mrs. DOROTHY LOAN INVESTMENTS. you can say goodbye to all your financial crisis and difficulties as we are certified, trustworthy, reliable, efficient, fast and dynamic

    ReplyDelete
  3. I invested $95,420 in Bitcoin trading from an unregulated broker, I feel agitated about my situation, even find my life in a difficult time to make withdrawal from my account, I Saw a post about An online fund charge back recovery company going through some page here on this platform, at *www thedailychargeback com* ,I gave them all the information they needed to place the recovery. To my surprise I successfully got my funds off that broker confirming the payment on my wallet account, I highly recommend their service to others.

    ReplyDelete