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 > Filter Report < User Level Security 3 | Replace Natural Key >
Back to Filter Report    Comments List
Upload Images   Link   Email  
Report Error
Werner Mildt 
     
9 months ago
Hi, I have a Cont.Form, selected a filter and printed the report.
Everything works fine.
Private Sub Report_Load()
    Me.Filter = Forms!LogForm.Filter
    Me.FilterOn = Forms!LogForm.FilterOn
    
    Me.OrderBy = Forms!LogForm.OrderBy
    Me.OrderBy = Forms!LogForm.OrderByOn
End Sub

Then I created a menu form, Imported the Cont.Form as a subform.
I now need to call the report from the SubForm.
My question is how do I set the code in the Report?
I am getting an error message, Can't find LogForm.
   I tried this Me.Filter = Forms!MunuF!LogForm.Filter
Would appreciate some help.
Thanks
Werner
Jennifer Neighbors 
     
9 months ago
Is your form really named MunuF? Might it be MenuF? When referring to a subform, you might try Forms!MunuF!LogForm.Form.Filter
Werner Mildt OP 
     
9 months ago
Hi Jennifer, I have tried to use your code, However, it still comes up with an error message.
Thank you for your reply.
Regards
Werner
Adam Schwanz 
             
9 months ago
Ensure that LogForm is the name of the subform control on your menu form, the name of the form inside of it doesn't matter.

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 12/13/2024 6:15:55 PM. PLT: 1s