Solved

how to handle vba events in a subform integrated with a main form

Posted on 2011-09-29
2
373 Views
Last Modified: 2013-11-28
I have a field called SN in my main form.  In the after update event of this field, I run some code and it works well.  I also have a subform in this main form.  In this subform I have some code that opens a recordset and populates the SN textbox in my main form.  That works well as well.  The only problem is that the coding behind the SN field's afterupdate event is never triggered.  

How can I execute the coding in the SN afterupdate event in the main form once my subform populates this SN field?
0
Comment
Question by:sxxgupta
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 36817060
try, make the afterudate event public
change Private to Public

* after running the codes that populates the SN textbox in my main form,
  call the afterUpdate event

me.parent.SN_Afterupdate
0
 

Author Comment

by:sxxgupta
ID: 36817472
sweet......thank you!!!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now