Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Calling the load event of my subform

Posted on 2008-10-30
2
487 Views
Last Modified: 2008-10-30
How can I manually "call" the load event of my subform from my main form?

0
Comment
Question by:snyperj
2 Comments
 
LVL 11

Accepted Solution

by:
SeanStrickland earned 500 total points
ID: 22841240
In the form itself, make sure Form_Load() is set to Public.
Public Sub Form_Load()
'... your code here...
End Sub


In your separate module... call using this:
Forms![Main Form Name Here]![subform control name].Form.Form_Load


I believe that should work.
Sean
0
 

Author Comment

by:snyperj
ID: 22841833
It was the first ".Form" in  "Form.Form_Load" I was missing... Thanks!
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question