?
Solved

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

Posted on 2011-09-29
2
Medium Priority
?
417 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
[X]
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
2 Comments
 
LVL 120

Accepted Solution

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

752 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