Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Passing a Form 2 < Passing a Form | QAT For One Db >
Back to Passing a Form 2    Comments List
Upload Images   Link   Email  
Great Video
Jeffrey Kraft 
       
5 months ago
Great video, but I swear I've seen the same or similar topic covered multiple times. Not a problem.  However, it's not taking into consideration the possibility of the Form Header or Form Footer being visible on the Form.  How would one go about checking to see if the header or footer is visible on the form as far as the Global Module is concerned.

I'm assuming its

  
  'Check if header is visible
  If f.section(acHeader).visible then
         -Do stuff-
  End If

  'Check if Footer is Visible
  If f.section(acFooter).Visible Then
         -Do Stuff-
  End If

Just looking for confirmation that this would work.  If I was actually at the computer that has my database I'd test it before hand.
Kevin Robertson 
           
5 months ago
That is correct, however you will need some error handling or you will get an error message (2462 saying that the section number you entered is invalid.

    On Error GoTo Errorhandler
    
    If F.Section(1).Visible Then
        MsgBox "Hello World"
    End If
    
Errorhandler:


Another way to do it is check the Height of the Section: If F.Section(1).Height > 0 Then

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Passing a Form 2.
 

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/11/2025 5:22:10 PM. PLT: 2s