Solved

Calling the load event of my subform

Posted on 2008-10-30
2
488 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

685 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