Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Using Visible in a Report
Jerry Fowler 
       
4 years ago
I would like to run something by you.

I have a VoucherF (Form) and a VoucherR (Report) and both of those have a DepositSubForm and a PayableSubForm depending on if the Voucher is a Deposit Voucher or a Payable Voucher using 2 checkboxes (Deposit, Payable).

I have the Form working great using a VBA sub procedure where if Deposit is True then the DepositSubForm is visiable (True) and vis-a-versa if Payable is True.

Now on to the question I'm using basically the same VBA code to try and do this for the VoucherR but the subforms never show up.

Any thoughts or what could I send you to see?

here is the VBA Code:

Public Sub Deposit_PayableCheck()

    If Deposit And Not Payable Then
        VoucherDepositDetailSubF.Visible = True
        VoucherPayableDetailSubF.Visible = False
        PayableTo.Visible = False
        Address.Visible = False
        PayableToCombo.Visible = False
        PayableFN.Visible = False
        PayableLN.Visible = False
    Else
        If Payable And Not Deposit Then
            VoucherDepositDetailSubF.Visible = False
            VoucherPayableDetailSubF.Visible = True
            PayableTo.Visible = True
            Address.Visible = True
            PayableToCombo.Visible = True
            PayableFN.Visible = True
            PayableLN.Visible = True
        End If
    End If
          
End Sub
Jerry Fowler OP  @Reply  
       
4 years ago
I figured it out, I just needed to add the 2 checkboxes on the report and then make those invisible.  Maks sense when I think about it as they are on the form but there I have them visible.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 7:42:47 PM. PLT: 1s