Solved

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

Posted on 2011-09-29
2
395 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
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…

825 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